[vlc-devel] [PATCH] Set default value for audio tracks when parsing one
Rémi Denis-Courmont
remi at remlab.net
Mon Dec 10 22:41:39 CET 2012
Functionally it looks OK, but is this really how MKV is supposed to work?
Le lundi 10 décembre 2012 23:32:01, Denis Charmet a écrit :
> ---
> modules/demux/mkv/matroska_segment_parse.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/modules/demux/mkv/matroska_segment_parse.cpp
> b/modules/demux/mkv/matroska_segment_parse.cpp index cff09a2..d0f8368
> 100644
> --- a/modules/demux/mkv/matroska_segment_parse.cpp
> +++ b/modules/demux/mkv/matroska_segment_parse.cpp
> @@ -233,6 +233,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry
> *m ) case track_audio:
> psz_type = "audio";
> tk->fmt.i_cat = AUDIO_ES;
> + tk->fmt.audio.i_channels = 1;
> + tk->fmt.audio.i_rate = 8000;
> break;
> case track_video:
> psz_type = "video";
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list