From bb82ad16854c22684ddb86da5976ca3c1d4bf998 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 10 Mar 2013 15:21:55 +0800 Subject: [PATCH] Correct WrapI_UUUI and IMP sceMpegAvcConvertToYuv420 --- Core/HLE/FunctionWrappers.h | 4 ++-- Core/HLE/sceMpeg.cpp | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Core/HLE/FunctionWrappers.h b/Core/HLE/FunctionWrappers.h index a48aa8591..7bd718a4c 100644 --- a/Core/HLE/FunctionWrappers.h +++ b/Core/HLE/FunctionWrappers.h @@ -147,8 +147,8 @@ template void WrapI_UUU() { RETURN(retval); } -template void WrapI_UUUI() { - int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4)); +template void WrapI_UUUI() { + int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3)); RETURN(retval); } diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index b8c49344f..2f4af70eb 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -1354,6 +1354,13 @@ u32 sceMpegAvcResourceInit(u32 mpeg) return 0; } + +int sceMpegAvcConvertToYuv420(u32 mpeg, u32 bufferOutput, u32 unknown1, int unknown2) + { + ERROR_LOG(HLE, "UNIMPL sceMpegAvcConvertToYuv420(%08x, %08x, %08x, %08x)", mpeg, bufferOutput, unknown1, unknown2); + return 0; + } + /* MP3 */ int sceMp3Decode(u32 mp3, u32 outPcmPtr) { @@ -1728,6 +1735,7 @@ const HLEFunction sceMpeg[] = {0x8160a2fe,WrapU_U,"sceMpegAvcResourceFinish"}, {0xaf26bb01,WrapU_U,"sceMpegAvcResourceGetAvcEsBuf"}, {0xfcbdb5ad,WrapU_U,"sceMpegAvcResourceInit"}, + {0xF5E7EA31,WrapI_UUUI,"sceMpegAvcConvertToYuv420"}, }; const HLEFunction sceMp3[] =