mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
VIDEO: Fix seeking in AVI videos with no initial audio frames
This commit is contained in:
parent
690c6cc8d4
commit
b2676c412d
@ -528,7 +528,10 @@ bool AVIDecoder::seekIntern(const Audio::Timestamp &time) {
|
||||
// Recreate the audio stream
|
||||
audioTrack->resetStream();
|
||||
|
||||
uint framesNeeded = _header.initialFrames;
|
||||
uint framesNeeded = _header.initialFrames;
|
||||
if (framesNeeded == 0)
|
||||
framesNeeded = 1;
|
||||
|
||||
uint startAudioChunk = 0;
|
||||
int startAudioSearch = (lastRecord < 0) ? (frameIndex - 1) : (lastRecord - 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user