mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Mp3: Allow decode with NULL out pointer.
This commit is contained in:
1 parent
4903e14aae
commit
914d022eef
2 files changed
+4
-6
No files matched your search
@@ -337,10 +337,6 @@ size_t AuCtx::FindNextMp3Sync() {
|
||||
|
||||
// return output pcm size, <0 error
|
||||
u32 AuCtx::AuDecode(u32 pcmAddr) {
|
||||
if (!Memory::GetPointer(PCMBuf)) {
|
||||
return hleLogError(ME, -1, "ctx output bufferAddress %08x is invalid", PCMBuf);
|
||||
}
|
||||
|
||||
auto outbuf = Memory::GetPointer(PCMBuf);
|
||||
int outpcmbufsize = 0;
|
||||
|
||||
@@ -385,7 +381,7 @@ u32 AuCtx::AuDecode(u32 pcmAddr) {
|
||||
memset(outbuf + outpcmbufsize, 0, PCMBufSize - outpcmbufsize);
|
||||
}
|
||||
|
||||
NotifyMemInfo(MemBlockFlags::WRITE, pcmAddr, outpcmbufsize, "AuDecode");
|
||||
NotifyMemInfo(MemBlockFlags::WRITE, PCMBuf, outpcmbufsize, "AuDecode");
|
||||
if (pcmAddr)
|
||||
Memory::Write_U32(PCMBuf, pcmAddr);
|
||||
return outpcmbufsize;
|
||||
|
||||
Reference in new issue
Block a user