mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-18 07:58:14 +00:00
Don't delay psmf video when the audio has ended.
Lunar shows logos without any audio, which means the audio pts is always 0. That meant it delayed more each frame...
This commit is contained in:
parent
2846d3ce61
commit
46227c8473
@ -888,7 +888,7 @@ int scePsmfPlayerGetVideoData(u32 psmfPlayer, u32 videoDataAddr)
|
||||
|
||||
s64 deltapts = psmfplayer->mediaengine->getVideoTimeStamp() - psmfplayer->mediaengine->getAudioTimeStamp();
|
||||
int delaytime = 3000;
|
||||
if (deltapts > 0)
|
||||
if (deltapts > 0 && !psmfplayer->mediaengine->IsAudioEnd())
|
||||
delaytime = deltapts * 1000000 / 90000;
|
||||
if (!ret)
|
||||
return hleDelayResult(ret, "psmfPlayer video decode", delaytime);
|
||||
|
Loading…
x
Reference in New Issue
Block a user