Commit b17e7f5a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: allow receiving RTP on odd ports for compatibility

parent c8c84505
...@@ -8,6 +8,10 @@ Mac OS X Interface: ...@@ -8,6 +8,10 @@ Mac OS X Interface:
New Localizations: New Localizations:
* Indonesian * Indonesian
Various bugfixes:
* Support for receiving RTP packets on odd port numbers.
* Lots of small bugfixes.
Changes between 0.9.6 and 0.9.8a: Changes between 0.9.6 and 0.9.8a:
--------------------------------- ---------------------------------
......
...@@ -182,12 +182,13 @@ static int Open (vlc_object_t *obj) ...@@ -182,12 +182,13 @@ static int Open (vlc_object_t *obj)
{ {
case IPPROTO_UDP: case IPPROTO_UDP:
case IPPROTO_UDPLITE: case IPPROTO_UDPLITE:
fd = net_OpenDgram (obj, dhost, (dport + 1) & ~1, fd = net_OpenDgram (obj, dhost, dport, shost, sport,
shost, (sport + 1) & ~1, AF_UNSPEC, tp); AF_UNSPEC, tp);
if (fd == -1) if (fd == -1)
break; break;
rtcp_fd = net_OpenDgram (obj, dhost, dport | 1, shost, if ((dport & 1) == 0)
sport ? (sport | 1) : 0, AF_UNSPEC, tp); rtcp_fd = net_OpenDgram (obj, dhost, dport + 1, shost, 0,
AF_UNSPEC, tp);
break; break;
case IPPROTO_DCCP: case IPPROTO_DCCP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment