diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 4f3eb33e1b8154e036329c823bb2d3b362ffc92a..aed8ba86ac6e1f7909d62c6a7db12806f57d7062 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 )