mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 19:08:15 +00:00
VIDEO: PreIMD: End frame when stream depleted
As happens for the last frames in the Fascination videos. svn-id: r54144
This commit is contained in:
parent
8504e30dac
commit
9c349cf78b
@ -684,11 +684,11 @@ Surface *PreIMDDecoder::decodeNextFrame() {
|
||||
}
|
||||
|
||||
void PreIMDDecoder::processFrame() {
|
||||
_curFrame++;
|
||||
|
||||
uint16 frameSize = _stream->readUint16LE();
|
||||
if (frameSize == 0) {
|
||||
_curFrame++;
|
||||
if (_stream->eos() || (frameSize == 0))
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 nextFramePos = _stream->pos() + frameSize + 2;
|
||||
|
||||
@ -752,8 +752,6 @@ void PreIMDDecoder::processFrame() {
|
||||
}
|
||||
|
||||
_stream->seek(nextFramePos);
|
||||
|
||||
_curFrame++;
|
||||
}
|
||||
|
||||
// Just a simple blit
|
||||
|
Loading…
x
Reference in New Issue
Block a user