Commit 15b18c04 authored by Jai Menon's avatar Jai Menon Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9e7276df
...@@ -796,6 +796,8 @@ bool matroska_segment_c::Select( mtime_t i_start_time ) ...@@ -796,6 +796,8 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
!strcmp( p_tk->psz_codec, "V_MPEG2" ) ) !strcmp( p_tk->psz_codec, "V_MPEG2" ) )
{ {
p_tk->fmt.i_codec = VLC_CODEC_MPGV; 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 ) ) else if( !strncmp( p_tk->psz_codec, "V_THEORA", 8 ) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment