Skip to content

Commit

Permalink
Fix unimportant valgrind warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 15, 2023
1 parent d15001b commit 9823d0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Core/HLE/sceMpeg.cpp
Expand Up @@ -636,7 +636,7 @@ static int sceMpegQueryStreamOffset(u32 mpeg, u32 bufferAddr, u32 offsetAddr)

DEBUG_LOG(ME, "sceMpegQueryStreamOffset(%08x, %08x, %08x)", mpeg, bufferAddr, offsetAddr);

// Kinda destructive, no?
// Kinda destructive, no? Shouldn't this just do what sceMpegQueryStreamSize does?
AnalyzeMpeg(Memory::GetPointerWriteUnchecked(bufferAddr), Memory::ValidSize(bufferAddr, 32768), ctx);

if (ctx->mpegMagic != PSMF_MAGIC) {
Expand Down Expand Up @@ -667,7 +667,8 @@ static u32 sceMpegQueryStreamSize(u32 bufferAddr, u32 sizeAddr)
DEBUG_LOG(ME, "sceMpegQueryStreamSize(%08x, %08x)", bufferAddr, sizeAddr);

MpegContext ctx;
ctx.mediaengine = 0;
ctx.mediaengine = nullptr; // makes sure we don't actually load the stream.
ctx.isAnalyzed = false;

AnalyzeMpeg(Memory::GetPointerWriteUnchecked(bufferAddr), Memory::ValidSize(bufferAddr, 32768), &ctx);

Expand Down

0 comments on commit 9823d0b

Please sign in to comment.