[PR #2507] [MERGED] Ajm: Avoid processing job buffers before codec initialization #2787

Closed
opened 2026-02-27 22:01:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2507
Author: @StevenMiller123
Created: 2/23/2025
Status: Merged
Merged: 2/23/2025
Merged by: @roamic

Base: mainHead: atrac9-fix


📝 Commits (1)

  • 0802c63 Avoid processing job buffers before codec initialization

📊 Changes

2 files changed (+6 additions, -0 deletions)

View changed files

📝 src/core/libraries/ajm/ajm_instance.cpp (+5 -0)
📝 src/core/libraries/ajm/ajm_instance.h (+1 -0)

📄 Description

Some games send audio jobs before sending an initialization job. Currently, this results in trying to run the decoders before actually initializing them.
This added check fixes Ajm-related crashes in Dragon Ball FighterZ and The Last of Us Remastered.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2507 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 2/23/2025 **Status:** ✅ Merged **Merged:** 2/23/2025 **Merged by:** [@roamic](https://github.com/roamic) **Base:** `main` ← **Head:** `atrac9-fix` --- ### 📝 Commits (1) - [`0802c63`](https://github.com/shadps4-emu/shadPS4/commit/0802c6358dc977f8d7c5578ae7056eb1c2dd0ac5) Avoid processing job buffers before codec initialization ### 📊 Changes **2 files changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/ajm/ajm_instance.cpp` (+5 -0) 📝 `src/core/libraries/ajm/ajm_instance.h` (+1 -0) </details> ### 📄 Description Some games send audio jobs before sending an initialization job. Currently, this results in trying to run the decoders before actually initializing them. This added check fixes Ajm-related crashes in Dragon Ball FighterZ and The Last of Us Remastered. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2787
No description provided.