mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
mkvinfo: report size of elements with unknown size correctly
Part of the fix of #2530.
This commit is contained in:
parent
4db66e2574
commit
a2e7d242c8
2
NEWS.md
2
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
|
||||
|
@ -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<int64_t>{e.GetSize()} : boost::optional<int64_t>{});
|
||||
}
|
||||
|
||||
std::string
|
||||
|
Loading…
Reference in New Issue
Block a user