[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 08:13:58 CEST 2010
vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed May 26 06:46:38 2010 +0200| [bfd863178c6b764914c0660c9066ff5e2a2e612b] | committer: Pierre Ynard
rtp sout: don't add a=rtcp: in SDP if RTP port is not specified
(cherry picked from commit c6bcc788be1ca4a91c9637a7b136d305f6d3ee08)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=bfd863178c6b764914c0660c9066ff5e2a2e612b
---
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