Skip to content

Commit

Permalink
AUDIO: Fix seeking in QuickTime files with multiple edit lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Apr 28, 2012
1 parent e2238e4 commit acb127c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/decoders/quicktime.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit acb127c

Please sign in to comment.