Repository navigation
PS5 Media Center v0.1.0-alpha.23 Original Aspect Calculation Fix
Pre-release
Pre-release
Original aspect-ratio calculation fix.
Root cause:
- SDL_kitchensink returns sample/pixel aspect ratio (SAR), not final display aspect ratio (DAR).
- The player incorrectly treated SAR 1:1 as a square display.
Implemented:
- Calculate DAR as decoded frame width divided by height, multiplied by SAR.
- 1920x1080 and 3840x2160 with SAR 1:1 now remain 16:9.
- Anamorphic 720x480 with SAR 32:27 correctly displays as 16:9.
- Missing SAR falls back to square pixels and the encoded frame ratio.
- Log frame dimensions, raw SAR, status, and calculated DAR at playback start.
Verification:
- 13/13 offline host tests passed.
- Square-pixel, missing-SAR, and anamorphic regression tests passed.
- Full PS5 Release build passed using the SDK wrappers.
- Standalone embedded-player and asset verification passed.
Standalone ELF SHA-256: 9390cf40492d2ee10616840b125233dc1cf437ccc0284f2709c43d510bbb3e58
ZIP SHA-256: c4bf99b440714263d13e7b862866f0c8fb7fdd5c51052c31fd86eebd3487b488