diff options
-rw-r--r-- | video/flic_decoder.cpp | 7 |
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; } |