From 1d2150d2ae90f7de72fa90e21f44b570cdbdb6f0 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 31 Jan 2021 15:32:29 +0800 Subject: [PATCH] Mpeg:Only allow firmware >= 6 for warmup Fix blue screen in #13146 --- Core/HLE/sceMpeg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index a33712e1f9..77888188a4 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -1585,8 +1585,9 @@ static int sceMpegGetAvcAu(u32 mpeg, u32 streamId, u32 auAddr, u32 attrAddr) ERROR_LOG_REPORT(ME, "sceMpegGetAvcAu(%08x, %08x, %08x, %08x): invalid ringbuffer address", mpeg, streamId, auAddr, attrAddr); return -1; } + int sdkver = sceKernelGetCompiledSdkVersion(); - if ((sdkver >= 0x03000000) && (ctx->mpegwarmUp < MPEG_WARMUP_FRAMES)) { + if ((sdkver >= 0x06000000) && (ctx->mpegwarmUp < MPEG_WARMUP_FRAMES)) { DEBUG_LOG(ME, "sceMpegGetAvcAu(%08x, %08x, %08x, %08x): warming up", mpeg, streamId, auAddr, attrAddr); ctx->mpegwarmUp++; return ERROR_MPEG_NO_DATA;