diff options
author | Sven Hesse | 2010-08-08 00:44:33 +0000 |
---|---|---|
committer | Sven Hesse | 2010-08-08 00:44:33 +0000 |
commit | 2296aad042aad1c9983b4a9bf2e187912c361407 (patch) | |
tree | 15951e4b16b520be3bc28376fa045a155bad38bb /graphics/video | |
parent | 2bcc02a27a5261fab4d769e3160ff490573a6be1 (diff) | |
download | scummvm-rg350-2296aad042aad1c9983b4a9bf2e187912c361407.tar.gz scummvm-rg350-2296aad042aad1c9983b4a9bf2e187912c361407.tar.bz2 scummvm-rg350-2296aad042aad1c9983b4a9bf2e187912c361407.zip |
VIDEO/GOB: Fix IMD playing
Fix IMD playing for some fringe cases, especially when seeking
beforehand.
svn-id: r51871
Diffstat (limited to 'graphics/video')
-rw-r--r-- | graphics/video/coktel_decoder.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp index 73bcc6a8d0..4e5a8fe6e5 100644 --- a/graphics/video/coktel_decoder.cpp +++ b/graphics/video/coktel_decoder.cpp @@ -679,7 +679,7 @@ bool IMDDecoder::seek(int32 frame, int whence, bool restart) { else return false; - if ((frame < -1) || (((uint32) frame) >= _frameCount)) + if ((frame < -1) || (frame >= ((int32) _frameCount))) // Out of range return false; @@ -708,8 +708,6 @@ bool IMDDecoder::seek(int32 frame, int whence, bool restart) { for (int i = ((frame > _curFrame) ? _curFrame : 0); i <= frame; i++) processFrame(); - return true; - } else { warning("IMDDecoder::seek(): Frame %d is not directly accessible", frame + 1); return false; |