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:
Unknown W. Brackets 2016-08-15 21:00:10 -07:00
parent 4eca12890e
commit a0484dce65

View File

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