Commit a7fdf935 authored by Denis Charmet's avatar Denis Charmet Committed by Jean-Baptiste Kempf

Use default values when parsing MKV audio track

This fixes #6773
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b7d55acd
...@@ -601,6 +601,10 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m ) ...@@ -601,6 +601,10 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
{ {
EbmlMaster *tka = static_cast<EbmlMaster*>(l); 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" ); msg_Dbg( &sys.demuxer, "| | | + Track Audio" );
for( unsigned int j = 0; j < tka->ListSize(); j++ ) for( unsigned int j = 0; j < tka->ListSize(); j++ )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment