Atrac: Fix AA3 dataOff value.

Note: will still be wrong in savestates...
This commit is contained in:
Unknown W. Brackets committed 2015-10-17 16:20:20 -07:00
1 parent 7d0dd0b94a
commit 27a10bc49f
1 file changed
+1 -2
+1 -2
View File
@@ -729,8 +729,7 @@ int Atrac::AnalyzeAA3() {
return ATRAC_ERROR_AA3_INVALID_DATA;
}
// TODO: Wrong, probably? Need to set after "EA3" header.
dataOff = 0;
dataOff = 10 + tagSize + 96;
firstSampleoffset = 0;
if (endSample < 0 && atracBytesPerFrame != 0) {
int atracSamplesPerFrame = (codecType == PSP_MODE_AT_3_PLUS ? ATRAC3PLUS_MAX_SAMPLES : ATRAC3_MAX_SAMPLES);