mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-29 13:18:36 +01:00
Small correction to psmfplayer seeking.
Should be the specific position after the fileoffset, and should be offset by the start pts thing...
This commit is contained in:
1 parent
1c4053f3c6
commit
da03308bfa
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user