mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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:
parent
1c4053f3c6
commit
da03308bfa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue