diff options
Diffstat (limited to 'engines/voyeur/animation.cpp')
-rw-r--r-- | engines/voyeur/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/voyeur/animation.cpp b/engines/voyeur/animation.cpp index 5318da26e9..8206707bc5 100644 --- a/engines/voyeur/animation.cpp +++ b/engines/voyeur/animation.cpp @@ -268,8 +268,8 @@ bool RL2Decoder::RL2VideoTrack::endOfTrack() const { } bool RL2Decoder::RL2VideoTrack::seek(const Audio::Timestamp &time) { - int frame = time.totalNumberOfFrames(); - + int frame = getFrameAtTime(time); + if (frame < 0 || frame >= _header._numFrames) return false; |