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

SAP: fix RTP port parity

parent b17e7f5a
...@@ -1004,6 +1004,12 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp ) ...@@ -1004,6 +1004,12 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if (strcmp (vlc_proto, "udp")
&& (port & 1) /* odd media port? */
&& !FindAttribute (p_sdp, 0, "rtcp-mux")
&& !FindAttribute (p_sdp, 0, "rtcp"))
port++; /* RTP on next even port */
if (flags & 1) if (flags & 1)
{ {
/* Connection-oriented media */ /* Connection-oriented media */
......
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