[vlc-commits] Use default values when parsing MKV audio track
Denis Charmet
git at videolan.org
Wed Jun 13 01:05:18 CEST 2012
vlc | branch: master | Denis Charmet <typx at dinauz.org> | Tue Jun 12 22:07:49 2012 +0200| [a7fdf93552127541d9c4b53b1a01717327f69f4f] | committer: Jean-Baptiste Kempf
Use default values when parsing MKV audio track
This fixes #6773
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7fdf93552127541d9c4b53b1a01717327f69f4f
---
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++ )
More information about the vlc-commits
mailing list