Files
AnyPS5/core/libs/prx/libSceAvPlayer
XairRrR 72b788ba16 fix(libSceAvPlayer): saturate the current time when the clock passes the uint64 range
clockMillis converted the presentation clock, a double, to uint64 without
checking its range. A jump to 0xFFFFFFFFFFFFFFFF stores 2^64 in the clock,
and the conversion of that value is undefined. On x86-64 GCC it yields 0,
so sceAvPlayerCurrentTime reported 0 instead of the stream duration it
clamps every other time to.

The clock now saturates at the largest uint64 before the conversion, and
the duration clamp applies as before.

AI-assisted: yes
2026-10-29 06:18:32 +01:00
..