Skip to content

Commit

Permalink
Fix Grand Theft Auto - Vice City Stories
Browse files Browse the repository at this point in the history
  • Loading branch information
sum2012 committed Dec 22, 2020
1 parent d56e23e commit 0572423
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Core/HLE/sceMpeg.cpp
Expand Up @@ -1097,12 +1097,6 @@ static u32 sceMpegAvcDecode(u32 mpeg, u32 auAddr, u32 frameWidth, u32 bufferAddr
}
}

if (ctx->mpegwarmUp < MPEG_WARMUP_FRAMES) {
DEBUG_LOG(ME, "sceMpegAvcDecode(%08x, %08x, %d, %08x, %08x):warming up", mpeg, auAddr, frameWidth, bufferAddr, initAddr);
ctx->mpegwarmUp++;
return ERROR_MPEG_NO_DATA;
}

SceMpegAu avcAu;
avcAu.read(auAddr);

Expand Down Expand Up @@ -1584,6 +1578,12 @@ static int sceMpegGetAvcAu(u32 mpeg, u32 streamId, u32 auAddr, u32 attrAddr)
return -1;
}

if (ctx->mpegwarmUp < MPEG_WARMUP_FRAMES) {
DEBUG_LOG(ME, "sceMpegGetAvcAu(%08x, %08x, %08x, %08x): warming uo", mpeg, streamId, auAddr, attrAddr);
ctx->mpegwarmUp++;
return ERROR_MPEG_NO_DATA;
}

SceMpegAu avcAu;
avcAu.read(auAddr);

Expand Down Expand Up @@ -1679,6 +1679,12 @@ static int sceMpegGetAtracAu(u32 mpeg, u32 streamId, u32 auAddr, u32 attrAddr)
return -1;
}

if (ctx->mpegwarmUp < MPEG_WARMUP_FRAMES) {
DEBUG_LOG(ME, "sceMpegGetAtracAu(%08x, %08x, %08x, %08x): warning up", mpeg, streamId, auAddr, attrAddr);
ctx->mpegwarmUp++;
return ERROR_MPEG_NO_DATA;
}

SceMpegAu atracAu;
atracAu.read(auAddr);

Expand Down Expand Up @@ -1941,11 +1947,6 @@ static u32 sceMpegAtracDecode(u32 mpeg, u32 auAddr, u32 bufferAddr, int init)
return -1;
}

if (ctx->mpegwarmUp < MPEG_WARMUP_FRAMES) {
DEBUG_LOG(ME, "sceMpegAtracDecode(%08x, %08x, %08x, %i):warming up", mpeg, auAddr, bufferAddr, init);
ctx->mpegwarmUp++;
return ERROR_MPEG_NO_DATA;
}
DEBUG_LOG(ME, "sceMpegAtracDecode(%08x, %08x, %08x, %i)", mpeg, auAddr, bufferAddr, init);

SceMpegAu atracAu;
Expand Down

0 comments on commit 0572423

Please sign in to comment.