mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Merge pull request #2171 from unknownbrackets/psmfplayer
Don't delay psmf video when the audio has ended
This commit is contained in:
commit
477cbddcd1
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user