diff options
author | whiterandrek | 2018-06-13 20:33:43 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d (patch) | |
tree | b928bf22c4ae3ae4edb90296691aebc937dd2758 /engines | |
parent | 64bb3baab8be289d211317da58637084d9656423 (diff) | |
download | scummvm-rg350-4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d.tar.gz scummvm-rg350-4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d.tar.bz2 scummvm-rg350-4701cbd7d5b30a1a00555ef3fd1cf0a16a02262d.zip |
PINK: fix rewinding of CEL files which have 1 frame.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pink/cel_decoder.cpp | 5 |
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) |