From acb127c2d2960fc99ee6e4bb3634b1abaca22a3b Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sat, 28 Apr 2012 15:22:42 -0400 Subject: AUDIO: Fix seeking in QuickTime files with multiple edit lists --- audio/decoders/quicktime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/decoders') 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); -- cgit v1.2.3