aboutsummaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-22 21:02:26 -0400
committerPaul Gilbert2017-07-22 21:02:26 -0400
commit371a594b8d2f28535c76222b57430e0467583ea0 (patch)
tree63558f659c557bb41a9ea5f99c68acfd39370978 /video
parent7e12a62ce8aad18a13430e110f8a7abd055c6f62 (diff)
downloadscummvm-rg350-371a594b8d2f28535c76222b57430e0467583ea0.tar.gz
scummvm-rg350-371a594b8d2f28535c76222b57430e0467583ea0.tar.bz2
scummvm-rg350-371a594b8d2f28535c76222b57430e0467583ea0.zip
VIDEO: Fix AVIDecoder skipping alternate frames in reverse playback
Diffstat (limited to 'video')
-rw-r--r--video/avi_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/avi_decoder.cpp b/video/avi_decoder.cpp
index 910a4092aa..816752076e 100644
--- a/video/avi_decoder.cpp
+++ b/video/avi_decoder.cpp
@@ -734,7 +734,7 @@ bool AVIDecoder::seekIntern(const Audio::Timestamp &time) {
seekTransparencyFrame(frame);
// Set the video track's frame
- videoTrack->setCurFrame((int)frame - 1);
+ videoTrack->setCurFrame(videoTrack->isReversed() ? frame : frame - 1);
// Set the video track's search offset to the right spot
_videoTracks[0].chunkSearchOffset = _indexEntries[frameIndex].offset;