mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
VIDEO: PreIMD: End frame when frameSize == 0
As happens for the last frame in the first video of the Fascination intro. svn-id: r54072
This commit is contained in:
parent
51f7c4c525
commit
016f24d16c
@ -685,6 +685,10 @@ Surface *PreIMDDecoder::decodeNextFrame() {
|
||||
|
||||
void PreIMDDecoder::processFrame() {
|
||||
uint16 frameSize = _stream->readUint16LE();
|
||||
if (frameSize == 0) {
|
||||
_curFrame++;
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 nextFramePos = _stream->pos() + frameSize + 2;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user