]> git.sesse.net Git - vlc/commitdiff
rtp: fix h264 profile-level-id generation
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 14 Jun 2010 23:22:31 +0000 (01:22 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Mon, 14 Jun 2010 23:22:31 +0000 (01:22 +0200)
This was broken in the previous dedd7cd2ae0864dedfad367c1cbf916e1d315a00

modules/stream_out/rtp.c

index b3e39e63e628419f1abc762b423f55e800a96440..b5ef13d3a603b08ef09f09cd1e06282c072b9301 100644 (file)
@@ -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 )
                     {
                         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 )
                     {