mkvmerge: add option for keeping track statistics tags

This commit is contained in:
Moritz Bunkus 2015-08-12 12:33:32 +02:00
parent 1f5c0792c3
commit b6d8b0de92
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2015-08-12 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: enhancement: track statistics tags can be kept with
the option »--engage keep_track_statistics_tags«. This allows
outputting them in verbose identification mode for easier
parsing.
2015-08-11 Moritz Bunkus <moritz@bunkus.org>
* MKVToolNix GUI: new feature: jobs in the queue can now be edited

View File

@ -41,6 +41,7 @@ static const struct {
{ ENGAGE_NO_CUE_RELATIVE_POSITION, "no_cue_relative_position" },
{ ENGAGE_NO_DELAY_FOR_GARBAGE_IN_AVI, "no_delay_for_garbage_in_avi" },
{ ENGAGE_KEEP_LAST_CHAPTER_IN_MPLS, "keep_last_chapter_in_mpls" },
{ ENGAGE_KEEP_TRACK_STATISTICS_TAGS, "keep_track_statistics_tags" },
{ 0, nullptr },
};
static std::vector<bool> s_engaged_hacks(ENGAGE_MAX_IDX + 1, false);

View File

@ -38,7 +38,8 @@
#define ENGAGE_NO_CUE_RELATIVE_POSITION 17
#define ENGAGE_NO_DELAY_FOR_GARBAGE_IN_AVI 18
#define ENGAGE_KEEP_LAST_CHAPTER_IN_MPLS 19
#define ENGAGE_MAX_IDX 19
#define ENGAGE_KEEP_TRACK_STATISTICS_TAGS 20
#define ENGAGE_MAX_IDX 20
void engage_hacks(const std::string &hacks);
void engage_hack(unsigned int id);

View File

@ -1324,7 +1324,8 @@ kax_reader_c::read_headers_internal() {
for (auto position : m_deferred_l1_positions[dl1t_tags])
handle_tags(m_in.get(), l0, position);
discard_track_statistics_tags();
if (!hack_engaged(ENGAGE_KEEP_TRACK_STATISTICS_TAGS))
discard_track_statistics_tags();
if (!m_ti.m_no_global_tags)
process_global_tags();