mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
ajm: mp3: do not truncate input buffer
This commit is contained in:
parent
6c6e72a9ba
commit
994d62c080
|
|
@ -438,10 +438,6 @@ static orbis::ErrorCode ajm_ioctl(orbis::File *file, std::uint64_t request,
|
||||||
result->result |= AJM_RESULT_INVALID_DATA;
|
result->result |= AJM_RESULT_INVALID_DATA;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
inputFrameSize = std::min<std::uint32_t>(
|
|
||||||
inputFrameSize,
|
|
||||||
instance.inputBuffer.size() - totalDecodedBytes);
|
|
||||||
} else if (instance.codec == AJM_CODEC_AAC) {
|
} else if (instance.codec == AJM_CODEC_AAC) {
|
||||||
inputFrameSize = instance.inputBuffer.size() - totalDecodedBytes;
|
inputFrameSize = instance.inputBuffer.size() - totalDecodedBytes;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue