mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #14033 from sum2012/warmup_patch6
Mpeg:Only allow firmware >= 6 for warmup
This commit is contained in:
commit
ce2e47f353
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue