[Scummvm-git-logs] scummvm master -> c45b11f84974a53ab26e4d02b1b5f5dd5fd482af

dreammaster dreammaster at scummvm.org
Wed Oct 12 03:06:10 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c45b11f849 VIDEO: Fix video playback for zvision AVI videos


Commit: c45b11f84974a53ab26e4d02b1b5f5dd5fd482af
    https://github.com/scummvm/scummvm/commit/c45b11f84974a53ab26e4d02b1b5f5dd5fd482af
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-10-11T21:05:58-04:00

Commit Message:
VIDEO: Fix video playback for zvision AVI videos

Changed paths:
    video/avi_decoder.cpp



diff --git a/video/avi_decoder.cpp b/video/avi_decoder.cpp
index c4b091d..2c8efc4 100644
--- a/video/avi_decoder.cpp
+++ b/video/avi_decoder.cpp
@@ -385,7 +385,7 @@ bool AVIDecoder::loadStream(Common::SeekableReadStream *stream) {
 		TrackStatus status;
 		status.track = *it;
 		status.index = index;
-		status.chunkSearchOffset = 0;
+		status.chunkSearchOffset = _movieListStart;
 
 		if ((*it)->getTrackType() == Track::kTrackTypeAudio) {
 			_audioTracks.push_back(status);
@@ -397,6 +397,7 @@ bool AVIDecoder::loadStream(Common::SeekableReadStream *stream) {
 			assert(_videoTracks.size() == 1);
 
 			// Find the index entry for the frame and move to it
+			status.chunkSearchOffset = 0;
 			for (uint idx = 0; idx < _indexEntries.size(); ++idx) {
 				if (_indexEntries[idx].id != ID_REC &&
 					getStreamIndex(_indexEntries[idx].id) == index) {





More information about the Scummvm-git-logs mailing list