[vlc-devel] [PATCH] MKV : Export MPEG[12] sequence header present in CodecPrivate as extradata.
Jai Menon
jmenon86 at gmail.com
Thu Jul 1 16:21:40 CEST 2010
This fixes files where the muxer doesn't store sequence headers
as part of the stream.
---
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 ) )
{
--
1.7.1
More information about the vlc-devel
mailing list