shithub: aubio

Download patch

ref: f61c88a94a97bcfee7a50a8050d90ea7cb0dd7c2
parent: bb7a42a99f245ef67dd261866188b0fe6f9fad07
author: Paul Brossier <piem@piem.org>
date: Mon Jul 9 15:53:56 EDT 2012

src/spectral/fft.c: fix in and out sizes for ooura

--- a/src/spectral/fft.c
+++ b/src/spectral/fft.c
@@ -133,8 +133,8 @@
   s->winsize = winsize;
   s->fft_size = winsize / 2 + 1;
   s->compspec = new_fvec(winsize);
-  s->in    = AUBIO_ARRAY(double, s->fft_size);
-  s->out   = AUBIO_ARRAY(double, s->fft_size);
+  s->in    = AUBIO_ARRAY(double, s->winsize);
+  s->out   = AUBIO_ARRAY(double, s->winsize);
   s->ip    = AUBIO_ARRAY(int   , s->fft_size);
   s->w     = AUBIO_ARRAY(double, s->fft_size);
   s->ip[0] = 0;