[vlc-devel] [PATCH] Use default values when parsing MKV audio track

Denis Charmet typx at dinauz.org
Tue Jun 12 22:07:49 CEST 2012


This fixes #6773
---
 modules/demux/mkv/matroska_segment_parse.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 7d7cc3f..7edd0a1 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -601,6 +601,10 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
         {
             EbmlMaster *tka = static_cast<EbmlMaster*>(l);
 
+            /* Initialize default values */
+            tk->fmt.audio.i_channels = 1;
+            tk->fmt.audio.i_rate = 8000;
+
             msg_Dbg( &sys.demuxer, "|   |   |   + Track Audio" );
 
             for( unsigned int j = 0; j < tka->ListSize(); j++ )
-- 
1.7.10




More information about the vlc-devel mailing list