From f8286df167ce529faa122c17680dfbfb1029b40c Mon Sep 17 00:00:00 2001 From: Brick <6098371+0x1F9F1@users.noreply.github.com> Date: Sun, 27 Aug 2023 14:16:36 +0100 Subject: [PATCH] Fixed ResampleFrame_SSE doing unnecessary work --- src/audio/SDL_audiocvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 4692582ab2..5798199129 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -205,7 +205,7 @@ static void SDL_TARGETING("sse") ResampleFrame_SSE(const float* src, float* dst, int i, chan = 0; - for (; chan + 4 <= chans; chan++) { + for (; chan + 4 <= chans; chan += 4) { f0 = _mm_setzero_ps(); for (i = 0; i < RESAMPLER_SAMPLES_PER_FRAME; i++) {