From 2589e330d1b67a21bd9b063ac4b5bff232bf455c Mon Sep 17 00:00:00 2001 From: sum2012 Date: Tue, 8 Apr 2014 22:01:26 +0800 Subject: [PATCH] Add a missing logging in sceAacInit --- Core/HLE/sceMp4.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceMp4.cpp b/Core/HLE/sceMp4.cpp index 427bead10..beb0f2cb2 100644 --- a/Core/HLE/sceMp4.cpp +++ b/Core/HLE/sceMp4.cpp @@ -138,8 +138,10 @@ u32 sceMp4SearchSyncSampleNum() u32 sceAacInit(u32 parameters, u32 unknown1, u32 unknown2, u32 unknown3) { ERROR_LOG_REPORT(ME, "UNIMPL sceAacInit(parameters %08x, unknown1 %08x, unknown2 %08x, unknown3 %08x)", unknown1, unknown2, unknown3); - if (!Memory::IsValidAddress(parameters)) + if (!Memory::IsValidAddress(parameters)){ + ERROR_LOG(ME, "sceAacInit() AAC Invalid parameters address %08x", parameters); return ERROR_AAC_INVALID_ADDRESS; + } u64 startPos = (u64)Memory::Read_U32(parameters) << 32 | Memory::Read_U32(parameters + 4); // Audio data frame start position. u64 endPos = (u64)Memory::Read_U32(parameters + 8) << 32 | Memory::Read_U32(parameters + 12); // Audio data frame end position. int bufferAddr = Memory::Read_U32(parameters + 16); // Input AAC data buffer.