]> git.sesse.net Git - vlc/commitdiff
vod: fix h264 profile-level-id generation
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 14 Jun 2010 23:30:23 +0000 (01:30 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Mon, 14 Jun 2010 23:30:23 +0000 (01:30 +0200)
Port 9f5bb41a34b73cca36ad83c1fd563fe2b2b7fd4a to duplicate code

modules/misc/rtsp.c

index 9de54e596401dc6d1fe0d4a2f94ddf545d4509bb..a8ebc4310166c7b510d70feabcfc664527119530 100644 (file)
@@ -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 );
                         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 )
                     {