[vlc-devel] [PATCH] MKV : Export MPEG[12] sequence header present in CodecPrivate as extradata.
Jai Menon
jmenon86 at gmail.com
Thu Jul 1 17:15:48 CEST 2010
On Thu, Jul 1, 2010 at 7:51 PM, Jai Menon <jmenon86 at gmail.com> wrote:
> 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
Another approach would be to always export CodecPrivate (patch for
that in a separate thread). If that is preferred, then please
disregard this.
--
Jai Menon
More information about the vlc-devel
mailing list