Commit f8f0b0fe authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Backport [19749]: b= SDP ordering fix

parent 09c7494d
......@@ -800,6 +800,10 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
sout_stream_id_t *id = p_sys->es[i];
i_size += strlen( "m=**d*o * RTP/AVP *\r\n" ) + 10 + 10;
if ( id->i_bitrate )
{
i_size += strlen( "b=AS: *\r\n") + 10;
}
if( id->psz_rtpmap )
{
i_size += strlen( "a=rtpmap:* *\r\n" ) + strlen( id->psz_rtpmap )+10;
......@@ -808,10 +812,6 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
{
i_size += strlen( "a=fmtp:* *\r\n" ) + strlen( id->psz_fmtp ) + 10;
}
if ( id->i_bitrate)
{
i_size += strlen( "b=AS: *\r\n") + 10;
}
if( b_rtsp )
{
i_size += strlen( "a=control:*/trackID=*\r\n" ) + strlen( p_sys->psz_rtsp_control ) + 10;
......@@ -869,6 +869,10 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
{
continue;
}
if ( id->i_bitrate )
{
p += sprintf(p,"b=AS:%d\r\n",id->i_bitrate);
}
if( id->psz_rtpmap )
{
p += sprintf( p, "a=rtpmap:%d %s\r\n", id->i_payload_type,
......@@ -879,10 +883,6 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
p += sprintf( p, "a=fmtp:%d %s\r\n", id->i_payload_type,
id->psz_fmtp );
}
if ( id->i_bitrate)
{
p += sprintf(p,"b=AS:%d\r\n",id->i_bitrate);
}
if( b_rtsp )
{
p += sprintf( p, "a=control:trackID=%d\r\n", i );
......
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