Browse Source

Fixed ResampleFrame_SSE doing unnecessary work

Brick 1 year ago
parent
commit
f8286df167
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/audio/SDL_audiocvt.c

+ 1 - 1
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++) {