src/spectral/dct.c: ooura supports size > 1
authorPaul Brossier <piem@piem.org>
Mon, 13 Aug 2018 23:05:16 +0000 (01:05 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 13 Aug 2018 23:05:16 +0000 (01:05 +0200)
src/spectral/dct.c

index 85c0098..e40fe8b 100644 (file)
@@ -125,7 +125,7 @@ aubio_dct_t* new_aubio_dct (uint_t size) {
   }
 #else
   // ooura support sizes that are power of 2
-  if (aubio_is_power_of_two(size) != 1) {
+  if (aubio_is_power_of_two(size) != 1 || size == 1) {
     goto plain;
   }
   s->dct = (void *)new_aubio_dct_ooura (size);