mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Psmf: Use packets for end in all versions.
Turns out no version of the library looks at the pts for the end.
This commit is contained in:
parent
4eca12890e
commit
a0484dce65
@ -232,14 +232,8 @@ public:
|
||||
}
|
||||
|
||||
bool HasReachedEnd() {
|
||||
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());
|
||||
}
|
||||
// The pts are ignored - the end is when we're out of data.
|
||||
return mediaengine->IsVideoEnd() && mediaengine->IsNoAudioData();
|
||||
}
|
||||
|
||||
u32 filehandle;
|
||||
|
Loading…
Reference in New Issue
Block a user