From f0c957012f65775976be05d2497a6a30c222b7e6 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Tue, 11 Jul 2017 23:22:26 +0900 Subject: fixed fft --- fft/fft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fft') diff --git a/fft/fft.c b/fft/fft.c index 69c0971..7cb5374 100644 --- a/fft/fft.c +++ b/fft/fft.c @@ -4,7 +4,7 @@ void fft_write(struct fmplayer_fft_data *data, const int16_t *buf, unsigned len) { if (len > FFTLEN) { - unsigned discard = FFTLEN - len; + unsigned discard = len - FFTLEN; buf += discard*2; len = FFTLEN; } -- cgit v1.2.3