mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Allow Atrac files to be accepted with a little less data provided initially
Fixes #20692
This commit is contained in:
1 parent
abdcc65eb6
commit
f41bd18a8e
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user