src/spectral/fft.c: fix in and out sizes for ooura
authorPaul Brossier <piem@piem.org>
Tue, 10 Jul 2012 02:53:56 +0000 (19:53 -0700)
committerPaul Brossier <piem@piem.org>
Tue, 10 Jul 2012 02:53:56 +0000 (19:53 -0700)
src/spectral/fft.c

index 6c4c0c6a6595d3332ff6073b311d469c8727131d..ded847c3180723f355e51544d5af0a96118bb8e6 100644 (file)
@@ -133,8 +133,8 @@ aubio_fft_t * new_aubio_fft (uint_t winsize) {
   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;