From 0685968795833f2c06ccd5b9178a6868b0313c4e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 11 Jul 2003 15:51:17 +0000 Subject: [PATCH] Better support for unknown global elements (untested). --- src/mkvinfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mkvinfo.cpp b/src/mkvinfo.cpp index c8672f7d3..265d707ef 100644 --- a/src/mkvinfo.cpp +++ b/src/mkvinfo.cpp @@ -216,9 +216,11 @@ void parse_args(int argc, char **argv, char *&file_name, bool &use_gui) { } bool is_ebmlvoid(EbmlElement *l, int level, int &upper_lvl_el) { + if (upper_lvl_el < 0) + upper_lvl_el = 0; + if (EbmlId(*l) == EbmlVoid::ClassInfos.GlobalId) { show_element(l, level, "EbmlVoid"); - upper_lvl_el = 0; return true; }