Stop looping when eof is hit.
This commit is contained in:
Kevin Backhouse 2022-10-26 22:07:11 +01:00
parent 951247edcc
commit 771ead8732
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

View File

@ -1221,12 +1221,13 @@ void QuickTimeVideo::multipleEntriesDecoder() {
DataBuf buf(4 + 1);
io_->readOrThrow(buf.data(), 4);
io_->readOrThrow(buf.data(), 4);
size_t noOfEntries;
uint32_t noOfEntries;
noOfEntries = buf.read_uint32(0, bigEndian);
for (unsigned long i = 1; i <= noOfEntries; i++)
for (uint32_t i = 0; i < noOfEntries && continueTraversing_; i++) {
decodeBlock();
}
} // QuickTimeVideo::multipleEntriesDecoder
void QuickTimeVideo::videoHeaderDecoder(size_t size) {