libebml: 0.8.1 fix the infinite/unknown size reading in EbmlElement::FindNextElement()

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@250 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Steve Lhomme 2010-05-22 12:10:55 +00:00
parent 479527964e
commit 2ddda867cd
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-05-22 robux4
New 0.8.1 version:
- fix the infinite/unknown size reading in EbmlElement::FindNextElement()
2010-04-30 robux4/mosu
New 0.8.0 version:
- new macros to simplify and unify the way to declare and define EBML elements

View File

@ -436,7 +436,7 @@ EbmlElement * EbmlElement::FindNextElement(IOCallback & DataStream, const EbmlSe
// 0 : child
// 1 : same level
// + : further parent
if (Result->ValidateSize() && (UpperLevel > 0 || MaxDataSize == 0 || MaxDataSize >= (PossibleID_Length + PossibleSizeLength + SizeFound))) {
if (Result->ValidateSize() && (SizeFound == SizeUnknown || UpperLevel > 0 || MaxDataSize == 0 || MaxDataSize >= (PossibleID_Length + PossibleSizeLength + SizeFound))) {
if (SizeFound == SizeUnknown) {
Result->SetSizeInfinite();
}