mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #3077] [MERGED] libSceVideodec2: Update structs to match newer firmwares #3202
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3077
Author: @StevenMiller123
Created: 6/10/2025
Status: ✅ Merged
Merged: 6/10/2025
Merged by: @squidbus
Base:
main← Head:vdec2-fixes📝 Commits (4)
3ae9fb5Update file_system.cppe127457libSceVideodec2 struct fixesee140c3Static assert for AvcPictureInfo structb61109cInitialize new values📊 Changes
5 files changed (+28 additions, -4 deletions)
View changed files
📝
src/core/libraries/kernel/file_system.cpp(+1 -0)📝
src/core/libraries/videodec/videodec2.cpp(+3 -3)📝
src/core/libraries/videodec/videodec2.h(+3 -1)📝
src/core/libraries/videodec/videodec2_avc.h(+17 -0)📝
src/core/libraries/videodec/videodec2_impl.cpp(+4 -0)📄 Description
Based on some decompilation I did, some libSceVideodec2 structs were adjusted somewhere around firmware 6.50. Our previous code was built around older versions of the library, and as a result, newer versions of libSceAvPlayer.sprx and newer games that use libSceVideodec2 would hit the struct size error return.
This PR updates the structs, and updates the struct size checks to match how newer versions of libSceVideodec2 behave.
This should properly fix #2604, though the author of that issue probably can't test this.
I've also thrown in a function export needed for Assassin's Creed Unity, since I don't see a point in making a separate one line PR for that.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.