mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Fixed some missing default values in the Matroska reader (e.g. mono audio files). Reported by Liisachan.
This commit is contained in:
parent
47687acaa0
commit
2d3d0c8efe
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user