aboutsummaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorwhiterandrek2018-06-14 23:19:09 +0300
committerEugene Sandulenko2018-06-15 00:25:57 +0200
commitabf17aaa5920572c4bcbeb54577840122e9593fc (patch)
tree4d045ff9e1e6abbe5a0095ab10cf75e47fdcf705 /video
parent05486af870f0fe9f43c4b7352c804a7a93e38b0d (diff)
downloadscummvm-rg350-abf17aaa5920572c4bcbeb54577840122e9593fc.tar.gz
scummvm-rg350-abf17aaa5920572c4bcbeb54577840122e9593fc.tar.bz2
scummvm-rg350-abf17aaa5920572c4bcbeb54577840122e9593fc.zip
VIDEO: fix rewinding of FLIC files
Diffstat (limited to 'video')
-rw-r--r--video/flic_decoder.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/video/flic_decoder.cpp b/video/flic_decoder.cpp
index 57d8fb5585..9e797869c0 100644
--- a/video/flic_decoder.cpp
+++ b/video/flic_decoder.cpp
@@ -130,14 +130,13 @@ bool FlicDecoder::FlicVideoTrack::endOfTrack() const {
}
bool FlicDecoder::FlicVideoTrack::rewind() {
- _curFrame = -1;
- _nextFrameStartTime = 0;
-
- if (endOfTrack() && _fileStream->pos() < _fileStream->size())
+ if (endOfTrack() && _fileStream->pos() < _fileStream->size() && _frameCount != 1)
_atRingFrame = true;
else
_fileStream->seek(_offsetFrame1);
+ _curFrame = -1;
+ _nextFrameStartTime = 0;
_frameDelay = _startFrameDelay;
return true;
}