Skip to content

Commit

Permalink
ajm: mp3: do not truncate input buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Oct 30, 2024
1 parent 6c6e72a commit 994d62c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rpcsx/iodev/ajm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,6 @@ static orbis::ErrorCode ajm_ioctl(orbis::File *file, std::uint64_t request,
result->result |= AJM_RESULT_INVALID_DATA;
break;
}

inputFrameSize = std::min<std::uint32_t>(
inputFrameSize,
instance.inputBuffer.size() - totalDecodedBytes);
} else if (instance.codec == AJM_CODEC_AAC) {
inputFrameSize = instance.inputBuffer.size() - totalDecodedBytes;
}
Expand Down

0 comments on commit 994d62c

Please sign in to comment.