Skip a bit of work when syncing video/audio.

This commit is contained in:
Unknown W. Brackets committed 2014-05-18 19:20:34 -07:00
1 parent 09dde13b19
commit 55fd30b520
1 file changed
+1 -1
+1 -1
View File
@@ -1464,7 +1464,7 @@ int scePsmfPlayerGetVideoData(u32 psmfPlayer, u32 videoDataAddr)
} else {
// This is an approximation, it should allow a certain amount ahead before skipping frames.
while (deltapts <= -(VIDEO_FRAME_DURATION_TS * 5)) {
psmfplayer->mediaengine->stepVideo(videoPixelMode);
psmfplayer->mediaengine->stepVideo(videoPixelMode, true);
deltapts = psmfplayer->mediaengine->getVideoTimeStamp() - psmfplayer->mediaengine->getAudioTimeStamp();
}
}