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:
Unknown W. Brackets 2013-06-09 10:53:49 -07:00
parent 2846d3ce61
commit 46227c8473

View File

@ -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);