Commit bfd86317 authored by Pierre Ynard's avatar Pierre Ynard

rtp sout: don't add a=rtcp: in SDP if RTP port is not specified

(cherry picked from commit c6bcc788)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent f63e6386
......@@ -831,7 +831,8 @@ char *SDPGenerate( sout_stream_t *p_stream, const char *rtsp_url )
id->psz_enc, id->i_clock_rate, id->i_channels,
id->psz_fmtp);
if( !p_sys->rtcp_mux && (id->i_port & 1) ) /* cf RFC4566 §5.14 */
/* cf RFC4566 §5.14 */
if( inclport && !p_sys->rtcp_mux && (id->i_port & 1) )
sdp_AddAttribute ( &psz_sdp, "rtcp", "%u", id->i_port + 1 );
if( rtsp_url != NULL )
......
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