Commit faedf23e 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 7304724f
...@@ -822,6 +822,11 @@ bool matroska_segment_c::Select( mtime_t i_start_time ) ...@@ -822,6 +822,11 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
!strcmp( tracks[i_track]->psz_codec, "V_MPEG2" ) ) !strcmp( tracks[i_track]->psz_codec, "V_MPEG2" ) )
{ {
tracks[i_track]->fmt.i_codec = VLC_CODEC_MPGV; tracks[i_track]->fmt.i_codec = VLC_CODEC_MPGV;
if( tracks[i_track]->fmt.i_extra > 0 )
{
tracks[i_track]->fmt.p_extra = xmalloc( tracks[i_track]->i_extra_data );
memcpy( tracks[i_track]->fmt.p_extra,tracks[i_track]->p_extra_data, tracks[i_track]->i_extra_data );
}
} }
else if( !strncmp( tracks[i_track]->psz_codec, "V_THEORA", 8 ) ) else if( !strncmp( tracks[i_track]->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