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

RTP: handle odd port numbers correctly

We should also open a RTCP socket, if only to not send ICMP errors back
parent 50083d4a
......@@ -174,6 +174,7 @@ static int Open (vlc_object_t *obj)
dport = extract_port (&dhost);
if (dport == 0)
dport = 5004; /* avt-profile-1 port */
dport = (dport + 1) & ~1; /* RTP is on the "next" even port */
/* Try to connect */
int fd = -1;
......
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