mkvmerge: Honor 'no' for the default track even if the track is read from a Matroska file in which it had 'yes' set for its default track flag.

This commit is contained in:
Moritz Bunkus 2007-06-23 14:56:28 +00:00
parent d657fd2f07
commit 3544fdc94f
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2007-06-23 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: The 'default track' flag was set to 'yes' for
tracks read from Matroska files even if 'no' was specified on the
command line.
* mkvextract: new feature: Added support for the 'header removal'
encoding scheme.

View File

@ -642,6 +642,8 @@ generic_packetizer_c::set_headers() {
set_as_default_track(idx, DEFAULT_TRACK_PRIORITY_FROM_TYPE);
else if (ti.default_track)
set_as_default_track(idx, DEFAULT_TRACK_PRIORITY_CMDLINE);
else if (default_tracks[idx] == hserialno)
default_tracks[idx] = 0;
if (ti.language != "")
*(static_cast<EbmlString *>