VIDEO: fix rewinding of FLIC files
This commit is contained in:
parent
05486af870
commit
abf17aaa59
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue