diff --git a/NEWS.md b/NEWS.md index 16b093555..70377ccde 100644 --- a/NEWS.md +++ b/NEWS.md @@ -16,6 +16,8 @@ its validity right before starting to mux/adding to the job queue. Before it tried to force that into something valid, often resulting in unintentional paths (such as "C:\users\…\DC\files\…"). Fixes #2527. +* mkvinfo: when using the `--size` option, mkvinfo will now report the + correctly if an element has an unknown size. Part of the fix of #2530. # Version 32.0.0 "Astral Progressions" 2019-03-12 diff --git a/src/common/kax_info.cpp b/src/common/kax_info.cpp index ff7b86b08..49163c239 100644 --- a/src/common/kax_info.cpp +++ b/src/common/kax_info.cpp @@ -296,7 +296,7 @@ kax_info_c::create_text_representation(EbmlElement &e) { text += ": "s + value; } - return create_element_text(text, e.GetElementPosition(), e.HeadSize() + e.GetSize(), e.GetSize()); + return create_element_text(text, e.GetElementPosition(), e.IsFiniteSize() ? e.HeadSize() + e.GetSize() : -2, e.IsFiniteSize() ? boost::optional{e.GetSize()} : boost::optional{}); } std::string