aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--video/avi_decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/avi_decoder.cpp b/video/avi_decoder.cpp
index 32aa9f9044..ae30ec0636 100644
--- a/video/avi_decoder.cpp
+++ b/video/avi_decoder.cpp
@@ -738,9 +738,9 @@ bool AVIDecoder::seekIntern(const Audio::Timestamp &time) {
chunk = _fileStream->readStream(entry->size);
videoTrack2->decodeFrame(chunk);
- if (indexFrame < frame) {
+ if (indexFrame < (int)frame) {
TrackStatus &status = _videoTracks.back();
- while (status.chunkSearchOffset < _movieListEnd && indexFrame++ < frame) {
+ while (status.chunkSearchOffset < _movieListEnd && indexFrame++ < (int)frame) {
// There was no index entry for the desired frame, so an earlier one was decoded.
// We now have to sequentially decode frames until we get to the desired frame
handleNextPacket(status);