From f41bd18a8eee526160382c65a9c51f15f888fd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 4 Aug 2025 19:31:35 +0200 Subject: [PATCH] Allow Atrac files to be accepted with a little less data provided initially Fixes #20692 --- Core/HLE/AtracCtx2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/AtracCtx2.cpp b/Core/HLE/AtracCtx2.cpp index 28056265cd..c638b6bd79 100644 --- a/Core/HLE/AtracCtx2.cpp +++ b/Core/HLE/AtracCtx2.cpp @@ -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;