src/spectral/dct.c: ooura supports size > 1
[aubio.git] / 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);