Atrac: Seek ahead only one frame at end.

If it had a partial ending frame, it should go ahead one frame, not one
frame plus the partial ending.
This commit is contained in:
Unknown W. Brackets 2016-01-02 11:13:48 -08:00
parent 85ff5eb68a
commit 96d5e10549

View file

@ -1098,7 +1098,7 @@ u32 _AtracDecodeData(int atracID, u8 *outbuf, u32 outbufPtr, u32 *SamplesNum, u3
// Still move forward, so we know that we've read everything.
// This seems to be reflected in the context as well.
atrac->currentSample += atrac->samplesPerFrame();
atrac->currentSample += atrac->samplesPerFrame() - numSamples;
}
*finish = finishFlag;