aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-23 21:55:42 +0200
committerFilippos Karapetis2014-12-23 21:55:42 +0200
commit6afeec129504a16ee67c77b35cd27f0808d566d2 (patch)
tree0a34ba53595fc8df5be1e69b39943027c7edb458 /engines/zvision
parent6edc16b6863c3957efa5ad23596e904d89f8627c (diff)
downloadscummvm-rg350-6afeec129504a16ee67c77b35cd27f0808d566d2.tar.gz
scummvm-rg350-6afeec129504a16ee67c77b35cd27f0808d566d2.tar.bz2
scummvm-rg350-6afeec129504a16ee67c77b35cd27f0808d566d2.zip
ZVISION: Handle animation rewinding outside the RLF encoder
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/video/rlf_decoder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/zvision/video/rlf_decoder.cpp b/engines/zvision/video/rlf_decoder.cpp
index 76fd70cf35..f1ac10bf88 100644
--- a/engines/zvision/video/rlf_decoder.cpp
+++ b/engines/zvision/video/rlf_decoder.cpp
@@ -200,9 +200,8 @@ bool RLFDecoder::RLFVideoTrack::seek(const Audio::Timestamp &time) {
}
const Graphics::Surface *RLFDecoder::RLFVideoTrack::decodeNextFrame() {
- // When an animation ends, rewind
if (_curFrame == (int)_frameCount)
- seek(Audio::Timestamp(0, getFrameRate().toInt()));
+ return NULL;
applyFrameToCurrent(_curFrame);