From 3236625bf657713bc355024a614a91b76393eefb Mon Sep 17 00:00:00 2001 From: raven02 Date: Sat, 25 Jan 2014 21:29:37 +0800 Subject: [PATCH] Revert #5044 and set ctx->avc.avcDecodeResult = 1 --- Core/HLE/sceMpeg.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index a78d8ea86c27..2d69ae72996a 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -265,7 +265,7 @@ void AnalyzeMpeg(u8 *buffer, MpegContext *ctx) { ctx->mpegLastDate = convertTimestampToDate(ctx->mpegLastTimestamp); ctx->avc.avcDetailFrameWidth = (*(u8*)(buffer + 142)) * 0x10; ctx->avc.avcDetailFrameHeight = (*(u8*)(buffer + 143)) * 0x10; - ctx->avc.avcDecodeResult = 0; + ctx->avc.avcDecodeResult = MPEG_AVC_DECODE_SUCCESS; ctx->avc.avcFrameStatus = 0; ctx->videoFrameCount = 0; @@ -1092,12 +1092,6 @@ int sceMpegGetAvcAu(u32 mpeg, u32 streamId, u32 auAddr, u32 attrAddr) result = PSP_ERROR_MPEG_NO_DATA; } - if (ctx->avc.avcDecodeResult == 0) { - INFO_LOG(ME, "Video decode completed"); - ctx->avc.avcDecodeResult = MPEG_AVC_DECODE_SUCCESS; - result = PSP_ERROR_MPEG_NO_DATA; - } - // The avcau struct may have been modified by mediaengine, write it back. sceAu.write(auAddr);