]> git.sesse.net Git - vlc/commitdiff
rtp sout: don't add a=rtcp: in SDP if RTP port is not specified
authorPierre Ynard <linkfanel@yahoo.fr>
Wed, 26 May 2010 04:46:38 +0000 (06:46 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Wed, 26 May 2010 04:46:38 +0000 (06:46 +0200)
modules/stream_out/rtp.c

index 4f3eb33e1b8154e036329c823bb2d3b362ffc92a..aed8ba86ac6e1f7909d62c6a7db12806f57d7062 100644 (file)
@@ -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 )