aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorSven Hesse2010-11-04 20:36:28 +0000
committerSven Hesse2010-11-04 20:36:28 +0000
commit016f24d16ca2bf8dae122a95ed39133f137da300 (patch)
tree06234f44649d04b0d2833724cd01aff348469496 /graphics
parent51f7c4c52520d888d54bfe3be6ef2a7288d0888d (diff)
downloadscummvm-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
Diffstat (limited to 'graphics')
-rw-r--r--graphics/video/coktel_decoder.cpp4
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;