Added ReferencePriority to the list of supported elements for mkvinfo.

This commit is contained in:
Moritz Bunkus 2003-06-22 14:30:02 +00:00
parent 1f867c49cf
commit 623916f444
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2003-06-22 Moritz Bunkus <moritz@bunkus.org> 2003-06-22 Moritz Bunkus <moritz@bunkus.org>
* Added 'ReferencePriority' element to the known elements for
mkvinfo.
* Removed "(mkvinfo) " from mkvinfo's output in order to improve * Removed "(mkvinfo) " from mkvinfo's output in order to improve
readability and save space. readability and save space.

View File

@ -839,6 +839,14 @@ bool process_file(const char *file_name) {
show_element(l3, 3, "Reference block: %.3fms", show_element(l3, 3, "Reference block: %.3fms",
((float)int64(reference)) * tc_scale / 1000000.0); ((float)int64(reference)) * tc_scale / 1000000.0);
} else if (EbmlId(*l3) ==
KaxReferencePriority::ClassInfos.GlobalId) {
KaxReferencePriority &priority =
*static_cast<KaxReferencePriority *>(l3);
priority.ReadData(es->I_O());
show_element(l3, 3, "Reference priority: %u",
uint32(priority));
} else if (!is_ebmlvoid(l3, 3)) } else if (!is_ebmlvoid(l3, 3))
show_unknown_element(l3, 3); show_unknown_element(l3, 3);