From bdd3a6c517aba2edfc10961d612a5371533d416e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 2 Feb 2013 01:06:40 -0800 Subject: [PATCH] Avoid the annoying static on some videos. --- Core/HLE/sceMpeg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index c51bd0562..81380470b 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -1201,6 +1201,8 @@ u32 sceMpegAvcCopyYCbCr(u32 mpeg, u32 sourceAddr, u32 YCbCrAddr) u32 sceMpegAtracDecode(u32 mpeg, u32 auAddr, u32 bufferAddr, int init) { ERROR_LOG(HLE, "UNIMPL sceMpegAtracDecode(%08x, %08x, %08x, %i)", mpeg, auAddr, bufferAddr, init); + if (Memory::IsValidAddress(bufferAddr)) + Memory::Memset(bufferAddr, 0, MPEG_ATRAC_ES_OUTPUT_SIZE); return 0; }