VIDEO: The next video frame needs updating before bink seeking

This commit is contained in:
Bastien Bouclet 2012-12-03 08:21:36 +01:00
parent 4a75a780d1
commit 86a45cd9d7

View File

@ -341,6 +341,10 @@ bool BinkDecoder::seek(const Audio::Timestamp &time) {
// Track down the keyframe
uint32 keyFrame = findKeyFrame(frame);
videoTrack->setCurFrame(keyFrame - 1);
// Adjust the video track to use for seeking
findNextVideoTrack();
while (getCurFrame() < (int32)frame - 1)
decodeNextFrame();