mkvparser: fix DiscardPadding extraction
the element length was being read twice; the second attempt would consume a portion of the discard padding field often failing due to limitations in GetUIntLength. Change-Id: Ibbe3f082e2d05460734a0e1f7d23f3c665e3f24b
This commit is contained in:
@@ -6682,12 +6682,7 @@ long Cluster::ParseBlockGroup(long long payload_size, long long& pos,
|
|||||||
return E_FILE_FORMAT_INVALID;
|
return E_FILE_FORMAT_INVALID;
|
||||||
|
|
||||||
if (id == 0x35A2) { // DiscardPadding
|
if (id == 0x35A2) { // DiscardPadding
|
||||||
result = GetUIntLength(pReader, pos, len);
|
status = UnserializeInt(pReader, pos, size, discard_padding);
|
||||||
|
|
||||||
if (result < 0) // error
|
|
||||||
return static_cast<long>(result);
|
|
||||||
|
|
||||||
status = UnserializeInt(pReader, pos, len, discard_padding);
|
|
||||||
|
|
||||||
if (status < 0) // error
|
if (status < 0) // error
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
Reference in New Issue
Block a user