mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue