mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-29 13:18:36 +01:00
Psmf: Ignore last timestamp with old PsmfPlayer libs
Until 5.50 Fix #6574
This commit is contained in:
1 parent
f23391578f
commit
00a379e9f0
1 file changed
+8
-3
@@ -232,9 +232,14 @@ public:
|
||||
}
|
||||
|
||||
bool HasReachedEnd() {
|
||||
bool videoPtsEnd = (s64)psmfPlayerAvcAu.pts >= (s64)totalDurationTimestamp - VIDEO_FRAME_DURATION_TS;
|
||||
// If we're out of video data and have no audio, it's over even if the pts isn't there yet.
|
||||
return videoPtsEnd || (mediaengine->IsVideoEnd() && mediaengine->IsNoAudioData());
|
||||
if (psmfPlayerLibVersion >= 0x05050010) {
|
||||
bool videoPtsEnd = (s64)psmfPlayerAvcAu.pts >= (s64)totalDurationTimestamp - VIDEO_FRAME_DURATION_TS;
|
||||
// If we're out of video data and have no audio, it's over even if the pts isn't there yet.
|
||||
return videoPtsEnd || (mediaengine->IsVideoEnd() && mediaengine->IsNoAudioData());
|
||||
}
|
||||
else {// Older versions just read until the end of the file.
|
||||
return (mediaengine->IsVideoEnd() && mediaengine->IsNoAudioData());
|
||||
}
|
||||
}
|
||||
|
||||
u32 filehandle;
|
||||
|
||||
Reference in new issue
Block a user