From 7ab8f6e25bb4904140116c4a484b5a23c44d6bf5 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Tue, 18 May 2010 10:01:31 +0000 Subject: Fix currentFrame semantics in Flic player svn-id: r49073 --- graphics/video/flic_decoder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'graphics/video') diff --git a/graphics/video/flic_decoder.cpp b/graphics/video/flic_decoder.cpp index 9dae1171ac..14d062562f 100644 --- a/graphics/video/flic_decoder.cpp +++ b/graphics/video/flic_decoder.cpp @@ -252,7 +252,7 @@ bool FlicDecoder::decodeNextFrame() { /* PSTAMP - skip for now */ break; default: - error("FlicDecoder::decodeFrame(): unknown subchunk type (type = 0x%02X)", frameType); + error("FlicDecoder::decodeNextFrame(): unknown subchunk type (type = 0x%02X)", frameType); break; } @@ -261,8 +261,8 @@ bool FlicDecoder::decodeNextFrame() { } // If we just processed the ring frame, set the next frame - if (_videoInfo.currentFrame == (int32)_videoInfo.frameCount + 1) { - _videoInfo.currentFrame = 1; + if (_videoInfo.currentFrame == (int32)_videoInfo.frameCount) { + _videoInfo.currentFrame = 0; _fileStream->seek(_offsetFrame2); } @@ -270,7 +270,7 @@ bool FlicDecoder::decodeNextFrame() { } void FlicDecoder::reset() { - _videoInfo.currentFrame = 0; + _videoInfo.currentFrame = -1; _fileStream->seek(_offsetFrame1); } -- cgit v1.2.3