parser: Fix bug in Chapters::Atom::Parse()
Reading the UID is considered to be failed only if status is < 0 and not the value read. Change-Id: I88fee3aa5b8c323d099930a6823406c012b70f81
This commit is contained in:
parent
bab0a002c5
commit
a4b68f825e
@ -4132,7 +4132,7 @@ long Chapters::Atom::Parse(IMkvReader* pReader, long long pos, long long size) {
|
||||
long long val;
|
||||
status = UnserializeInt(pReader, pos, size, val);
|
||||
|
||||
if (val < 0) // error
|
||||
if (status < 0) // error
|
||||
return status;
|
||||
|
||||
m_uid = static_cast<unsigned long long>(val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user