[vlc-commits] commit: MKV : Export MPEG[12] sequence header present in CodecPrivate as extradata. (Jai Menon )

git at videolan.org git at videolan.org
Sat Jul 3 13:52:06 CEST 2010


vlc | branch: master | Jai Menon <jmenon86 at gmail.com> | Thu Jul  1 20:09:40 2010 +0530| [15b18c04b30d456147f53445f98fa138f8cfa20b] | committer: Jean-Baptiste Kempf 

MKV : Export MPEG[12] sequence header present in CodecPrivate as extradata.

This fixes files where the muxer doesn't store sequence headers
as part of the stream.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15b18c04b30d456147f53445f98fa138f8cfa20b
---

 modules/demux/mkv/matroska_segment.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 04e4a22..2b0b7d4 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -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 ) )
         {



More information about the vlc-commits mailing list