mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
AUDIO: Fix seeking in QuickTime files with multiple edit lists
This commit is contained in:
parent
e2238e4a25
commit
acb127c2d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user