diff --git a/src/fft.c b/src/fft.c index bc07bfd..8e86903 100644 --- a/src/fft.c +++ b/src/fft.c @@ -123,7 +123,7 @@ outputComponents = _fast_ft(inputComponents, bandSize); for(i=0; i inLen/4) break; + if(b+i > inLen/8) break; fftSig[b+i] = amplitude(outputComponents[i], bandSize); } free(outputComponents);