]> git.sesse.net Git - vlc/commitdiff
MKV : Export MPEG[12] sequence header present in CodecPrivate as extradata.
authorJai Menon <jmenon86@gmail.com>
Thu, 1 Jul 2010 14:21:40 +0000 (19:51 +0530)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 3 Jul 2010 11:51:35 +0000 (13:51 +0200)
This fixes files where the muxer doesn't store sequence headers
as part of the stream.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/matroska_segment.cpp

index 04e4a22fa24bbebb05af9aeb79f770c2b96fd7cf..2b0b7d40f3dcf409b5340c67897628ac41537018 100644 (file)
@@ -796,6 +796,8 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
                  !strcmp( p_tk->psz_codec, "V_MPEG2" ) )
         {
             p_tk->fmt.i_codec = VLC_CODEC_MPGV;
+            if( p_tk->i_extra_data )
+                fill_extra_data( p_tk );
         }
         else if( !strncmp( p_tk->psz_codec, "V_THEORA", 8 ) )
         {