[vlc-commits] MKV: Set default value for audio tracks when parsing one

Denis Charmet git at videolan.org
Tue Dec 11 16:22:54 CET 2012


vlc | branch: master | Denis Charmet <typx at dinauz.org> | Mon Dec 10 22:32:01 2012 +0100| [272dcbf29ac74aec6038580e1085e918355e6826] | committer: Jean-Baptiste Kempf

MKV: Set default value for audio tracks when parsing one

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=272dcbf29ac74aec6038580e1085e918355e6826
---

 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";



More information about the vlc-commits mailing list