From 2d3d0c8efe4f4eb397b699fe1a0c4e2aa8fedd48 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 27 Aug 2003 13:10:12 +0000 Subject: [PATCH] Fixed some missing default values in the Matroska reader (e.g. mono audio files). Reported by Liisachan. --- ChangeLog | 5 +++++ src/r_matroska.cpp | 16 ++++------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c2b4674e..cb49ed5f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-27 Moritz Bunkus + + * mkvmerge: Fixed some missing default values in the Matroska + reader (e.g. mono audio files). Reported by Liisachan. + 2003-08-25 Moritz Bunkus * mkvmerge: Improved all command line parsing error messages. diff --git a/src/r_matroska.cpp b/src/r_matroska.cpp index 057352835..c80300626 100644 --- a/src/r_matroska.cpp +++ b/src/r_matroska.cpp @@ -405,19 +405,11 @@ void kax_reader_c::verify_tracks() { } } - if (t->a_sfreq == 0.0) { - if (verbose) - mxwarn("matroska_reader: The sampling frequency was not " - "set for track %u.\n", t->tnum); - continue; - } + if (t->a_sfreq == 0.0) + t->a_sfreq = 8000.0; - if (t->a_channels == 0) { - if (verbose) - mxwarn("matroska_reader: The number of channels was not " - "set for track %u.\n", t->tnum); - continue; - } + if (t->a_channels == 0) + t->a_channels = 1; if (t->a_formattag == 0) { if (verbose)