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:
Matthew Hoops 2015-01-16 02:11:20 -05:00
parent 7d1ee5563a
commit cb25b7b5ee

View file

@ -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;