[vlc-commits] commit: rtp sout: don't add a=rtcp: in SDP if RTP port is not specified ( Pierre Ynard )

git at videolan.org git at videolan.org
Wed May 26 06:47:20 CEST 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed May 26 06:46:38 2010 +0200| [c6bcc788be1ca4a91c9637a7b136d305f6d3ee08] | committer: Pierre Ynard 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6bcc788be1ca4a91c9637a7b136d305f6d3ee08
---

 modules/stream_out/rtp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 4f3eb33..aed8ba8 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -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 )



More information about the vlc-commits mailing list