diff options
author | Sven Hesse | 2010-11-04 20:36:28 +0000 |
---|---|---|
committer | Sven Hesse | 2010-11-04 20:36:28 +0000 |
commit | 016f24d16ca2bf8dae122a95ed39133f137da300 (patch) | |
tree | 06234f44649d04b0d2833724cd01aff348469496 | |
parent | 51f7c4c52520d888d54bfe3be6ef2a7288d0888d (diff) | |
download | scummvm-rg350-016f24d16ca2bf8dae122a95ed39133f137da300.tar.gz scummvm-rg350-016f24d16ca2bf8dae122a95ed39133f137da300.tar.bz2 scummvm-rg350-016f24d16ca2bf8dae122a95ed39133f137da300.zip |
VIDEO: PreIMD: End frame when frameSize == 0
As happens for the last frame in the first video of the Fascination
intro.
svn-id: r54072
-rw-r--r-- | graphics/video/coktel_decoder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp index cea902e3a0..6ebc64592e 100644 --- a/graphics/video/coktel_decoder.cpp +++ b/graphics/video/coktel_decoder.cpp @@ -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; |