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)