Commit 4e6d8a18 authored by Pierre Ynard's avatar Pierre Ynard

vod: fix h264 profile-level-id generation

Port 9f5bb41a to duplicate code
parent 9f5bb41a
...@@ -616,7 +616,8 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt ) ...@@ -616,7 +616,8 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
{ {
free( p_64_sps ); free( p_64_sps );
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