From 371a594b8d2f28535c76222b57430e0467583ea0 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 22 Jul 2017 21:02:26 -0400 Subject: VIDEO: Fix AVIDecoder skipping alternate frames in reverse playback --- video/avi_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3