VIDEO: Make the QuickTime code error out again if the frame data can't be found
The case shouldn't actually ever happen; the off-by-one bug when seeking to the last frame of the media (in an edit) caused this originally
This commit is contained in:
parent
7d1ee5563a
commit
cb25b7b5ee
1 changed files with 2 additions and 4 deletions
|
@ -566,10 +566,8 @@ Common::SeekableReadStream *QuickTimeDecoder::VideoTrackHandler::getNextFramePac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actualChunk < 0) {
|
if (actualChunk < 0)
|
||||||
warning("Could not find data for frame %d", _curFrame);
|
error("Could not find data for frame %d", _curFrame);
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Next seek to that frame
|
// Next seek to that frame
|
||||||
Common::SeekableReadStream *stream = _decoder->_fd;
|
Common::SeekableReadStream *stream = _decoder->_fd;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue