Commit 9f5bb41a authored by Pierre Ynard's avatar Pierre Ynard

rtp: fix h264 profile-level-id generation

This was broken in the previous dedd7cd2
parent 96f6e5a5
...@@ -1244,7 +1244,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt ) ...@@ -1244,7 +1244,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
if( i_nal_type == 7 ) if( i_nal_type == 7 )
{ {
p_64_sps = vlc_b64_encode_binary( p_buffer, i_size ); p_64_sps = vlc_b64_encode_binary( p_buffer, i_size );
sprintf_hexa( hexa, &p_buffer[5], 3 ); /* XXX: nothing ensures that i_size >= 4 ?? */
sprintf_hexa( hexa, &p_buffer[1], 3 );
} }
else if( i_nal_type == 8 ) else if( i_nal_type == 8 )
{ {
......
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