From 1fcbc4681441d12607f91f3300b2fd24eee340dc Mon Sep 17 00:00:00 2001 From: raven02 Date: Mon, 10 Feb 2014 09:31:54 +0800 Subject: [PATCH] Make sure audio stream is present --- Core/HLE/sceMpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index 91e6fd45e8..e17f0b3c0b 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -1174,7 +1174,7 @@ int sceMpegGetAtracAu(u32 mpeg, u32 streamId, u32 auAddr, u32 attrAddr) result = ERROR_MPEG_NO_DATA; } - if (ctx->mediaengine->IsNoAudioData() && !ctx->endOfAudioReached) { + if (ctx->atracRegistered && ctx->mediaengine->IsNoAudioData() && !ctx->endOfAudioReached) { WARN_LOG(ME, "Audio end reach. pts: %i dts: %i", (int)atracAu.pts, (int)ctx->mediaengine->getLastTimeStamp()); ctx->endOfAudioReached = true; result = ERROR_MPEG_NO_DATA;