mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-09 03:31:41 +00:00
ebml_validator: don't treat unknown-sized segment as a warning
This commit is contained in:
parent
2c0c476a4f
commit
dfc6deaf9f
@ -288,7 +288,11 @@ parse_content(int level,
|
||||
|
||||
if (size.is_unknown()) {
|
||||
mxinfo(boost::format(Y("%1% Warning: size is coded as 'unknown' (all bits are set)\n")) % level_string(level));
|
||||
g_warnings_found = true;
|
||||
|
||||
// In Matroska segments often have an unknown size – so don't
|
||||
// warn about it.
|
||||
if (element_name != "Segment")
|
||||
g_warnings_found = true;
|
||||
}
|
||||
|
||||
int64_t content_end_pos = size.is_unknown() ? end_pos : g_in->getFilePointer() + size.value;
|
||||
|
Loading…
Reference in New Issue
Block a user