mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
BINK: Fix #863, seeking to frame 0 triggers an assertion
It would create and use a negative (invalid) Audio::TimeStamp
This commit is contained in:
parent
51e9f5be3f
commit
97ef97841c
@ -344,6 +344,11 @@ bool BinkDecoder::seekIntern(const Audio::Timestamp &time) {
|
||||
// Adjust the video track to use for seeking
|
||||
findNextVideoTrack();
|
||||
|
||||
if (frame == keyFrame) {
|
||||
// We're already good, no need to go further
|
||||
return true;
|
||||
}
|
||||
|
||||
while (getCurFrame() < (int32)frame - 1)
|
||||
decodeNextFrame();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user