[vlc-devel] [PATCH] Set default value for audio tracks when parsing one
Denis Charmet
typx at dinauz.org
Mon Dec 10 22:32:01 CET 2012
---
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";
--
1.7.10.4
More information about the vlc-devel
mailing list