aboutsummaryrefslogtreecommitdiff
path: root/audio/decoders
diff options
context:
space:
mode:
authorMatthew Hoops2012-04-28 15:22:42 -0400
committerMatthew Hoops2012-04-28 15:22:42 -0400
commitacb127c2d2960fc99ee6e4bb3634b1abaca22a3b (patch)
treee85f494ee55bec09fe94e2f8303d2df41d02683e /audio/decoders
parente2238e4a25904f36f3cf3f91b9a4db7db22f6508 (diff)
downloadscummvm-rg350-acb127c2d2960fc99ee6e4bb3634b1abaca22a3b.tar.gz
scummvm-rg350-acb127c2d2960fc99ee6e4bb3634b1abaca22a3b.tar.bz2
scummvm-rg350-acb127c2d2960fc99ee6e4bb3634b1abaca22a3b.zip
AUDIO: Fix seeking in QuickTime files with multiple edit lists
Diffstat (limited to 'audio/decoders')
-rw-r--r--audio/decoders/quicktime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decoders/quicktime.cpp b/audio/decoders/quicktime.cpp
index 48e76a94da..99c1527a71 100644
--- a/audio/decoders/quicktime.cpp
+++ b/audio/decoders/quicktime.cpp
@@ -449,7 +449,7 @@ void QuickTimeAudioDecoder::QuickTimeAudioTrack::skipSamples(const Timestamp &le
}
void QuickTimeAudioDecoder::QuickTimeAudioTrack::findEdit(const Timestamp &position) {
- for (_curEdit = 0; _curEdit < _parentTrack->editCount && position < Timestamp(0, _parentTrack->editList[_curEdit].timeOffset, _decoder->_timeScale); _curEdit++)
+ for (_curEdit = 0; _curEdit < _parentTrack->editCount - 1 && position > Timestamp(0, _parentTrack->editList[_curEdit].timeOffset, _decoder->_timeScale); _curEdit++)
;
enterNewEdit(position);