diff options
author | Matthew Hoops | 2012-12-09 13:54:40 -0500 |
---|---|---|
committer | Matthew Hoops | 2012-12-09 13:56:06 -0500 |
commit | 81ea69cd33e19048a80272b3b2a4476179efe2e9 (patch) | |
tree | 67c2f91e215a442303f096bc2629be3ef6277612 /video/video_decoder.cpp | |
parent | c9c90e925ac6913d2ed49a2ab78047b510a8b78b (diff) | |
download | scummvm-rg350-81ea69cd33e19048a80272b3b2a4476179efe2e9.tar.gz scummvm-rg350-81ea69cd33e19048a80272b3b2a4476179efe2e9.tar.bz2 scummvm-rg350-81ea69cd33e19048a80272b3b2a4476179efe2e9.zip |
VIDEO: Fix setRate when _lastTimeChange is less than a frame
Thanks to bgK for noticing
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r-- | video/video_decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index b560143e93..4d9f19cfd9 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -418,7 +418,7 @@ void VideoDecoder::setRate(const Common::Rational &rate) { _startTime = g_system->getMillis(); // Adjust start time if we've seeked to something besides zero time - if (_lastTimeChange.totalNumberOfFrames() != 0) + if (_lastTimeChange != 0) _startTime -= (_lastTimeChange.msecs() / _playbackRate).toInt(); startAudio(); |