From f10c9dfd8c8d42df5cb364ed1a901d3f29f9c2cb Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Thu, 1 Jun 2017 16:52:36 +0200 Subject: [PATCH] Initialize pspWidth and increase the max size. --- Core/HLE/sceJpeg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceJpeg.cpp b/Core/HLE/sceJpeg.cpp index 59be70d604..790bcb0bb6 100644 --- a/Core/HLE/sceJpeg.cpp +++ b/Core/HLE/sceJpeg.cpp @@ -139,8 +139,8 @@ static int __DecodeJpeg(u32 jpegAddr, int jpegSize, u32 imageAddr) { if (actual_components == 3) { u24_be *imageBuffer = (u24_be*)jpegBuf; u32 *abgr = (u32*)Memory::GetPointer(imageAddr); - int pspWidth; - for (int w = 2; w < 2048; w *= 2) { + int pspWidth = 0; + for (int w = 2; w <= 4096; w *= 2) { if (w >= width && w >= height) { pspWidth = w; break;