mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Psmf: Ignore last timestamp with old PsmfPlayer libs
Until 5.50 Fix #6574
This commit is contained in:
parent
f23391578f
commit
00a379e9f0
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue