aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwhiterandrek2018-06-13 20:33:43 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d (patch)
treeb928bf22c4ae3ae4edb90296691aebc937dd2758
parent64bb3baab8be289d211317da58637084d9656423 (diff)
downloadscummvm-rg350-4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d.tar.gz
scummvm-rg350-4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d.tar.bz2
scummvm-rg350-4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d.zip
PINK: fix rewinding of CEL files which have 1 frame.
-rw-r--r--engines/pink/cel_decoder.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/pink/cel_decoder.cpp b/engines/pink/cel_decoder.cpp
index ef46c53cbc..4e5b8a08fe 100644
--- a/engines/pink/cel_decoder.cpp
+++ b/engines/pink/cel_decoder.cpp
@@ -194,7 +194,10 @@ const Graphics::Surface *CelDecoder::CelVideoTrack::decodeNextFrame() {
if (_atRingFrame) {
// If we decoded the ring frame, seek to the second frame
_atRingFrame = false;
- _fileStream->seek(_offsetFrame2);
+ if (_frameCount == 1) {
+ _fileStream->seek(_offsetFrame1);
+ } else
+ _fileStream->seek(_offsetFrame2);
}
if (_curFrame == 0)