diff options
author | Paul Gilbert | 2016-10-11 21:05:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-10-11 21:05:58 -0400 |
commit | c45b11f84974a53ab26e4d02b1b5f5dd5fd482af (patch) | |
tree | 663940e4bffaed2bd45194ed6ec0c29b2d1a8c7f /video | |
parent | 82c39aa6adc2ee346ffc7b0880661492436bb5b4 (diff) | |
download | scummvm-rg350-c45b11f84974a53ab26e4d02b1b5f5dd5fd482af.tar.gz scummvm-rg350-c45b11f84974a53ab26e4d02b1b5f5dd5fd482af.tar.bz2 scummvm-rg350-c45b11f84974a53ab26e4d02b1b5f5dd5fd482af.zip |
VIDEO: Fix video playback for zvision AVI videos
Diffstat (limited to 'video')
-rw-r--r-- | video/avi_decoder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/avi_decoder.cpp b/video/avi_decoder.cpp index c4b091d240..2c8efc49a0 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) { |