Fixed some missing default values in the Matroska reader (e.g. mono audio files). Reported by Liisachan.

This commit is contained in:
Moritz Bunkus 2003-08-27 13:10:12 +00:00
parent 47687acaa0
commit 2d3d0c8efe
2 changed files with 9 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2003-08-27 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: Fixed some missing default values in the Matroska
reader (e.g. mono audio files). Reported by Liisachan.
2003-08-25 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: Improved all command line parsing error messages.

View File

@ -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)