From abf17aaa5920572c4bcbeb54577840122e9593fc Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Thu, 14 Jun 2018 23:19:09 +0300 Subject: VIDEO: fix rewinding of FLIC files --- video/flic_decoder.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'video') 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; } -- cgit v1.2.3