Allow Atrac files to be accepted with a little less data provided initially

Fixes #20692
This commit is contained in:
Henrik Rydgård committed 2025-08-04 19:31:35 +02:00
1 parent abdcc65eb6
commit f41bd18a8e
1 file changed
+2 -2
+2 -2
View File
@@ -173,8 +173,8 @@ static int ComputeAtracStateAndInitSecondBuffer(SceAtracIdInfo *info, u32 readSi
int loopEnd;
if (bufferSize < (u32)info->fileDataEnd) {
if (info->streamDataByte < (s32)info->sampleSize * 3) {
return 0x80630011;
if (info->streamDataByte < (s32)info->sampleSize * 2) {
return SCE_ERROR_ATRAC_SIZE_TOO_SMALL;
}
loopEnd = info->loopEnd;
state = ATRAC_STATUS_STREAMED_WITHOUT_LOOP;