From da03308bfa26ea71eb1c32e3199fc09c2cdccf57 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 22 May 2014 00:34:47 -0700 Subject: [PATCH] Small correction to psmfplayer seeking. Should be the specific position after the fileoffset, and should be offset by the start pts thing... --- Core/HLE/scePsmf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/scePsmf.cpp b/Core/HLE/scePsmf.cpp index 039bad8b77..cea44becfe 100644 --- a/Core/HLE/scePsmf.cpp +++ b/Core/HLE/scePsmf.cpp @@ -1344,13 +1344,13 @@ int scePsmfPlayerStart(u32 psmfPlayer, u32 psmfPlayerData, int initPts) int lastOffset = 0; for (auto it = psmf.EPMap.begin(), end = psmf.EPMap.end(); it != end; ++it) { - if (initPts <= it->EPPts) { + if (initPts <= it->EPPts - (int)psmf.presentationStartTime) { break; } lastOffset = it->EPOffset; } - psmfplayer->readSize += lastOffset * 2048; + psmfplayer->readSize = lastOffset * 2048; pspFileSystem.SeekFile(psmfplayer->filehandle, psmfplayer->fileoffset + psmfplayer->readSize, FILEMOVE_BEGIN); _PsmfPlayerFillRingbuffer(psmfplayer);