shithub: aubio

Download patch

ref: aad7702b99db3ce982e06ecdc7d360d1e9df7d74
parent: 23fea56f909c480a690c63206dbee4b06a666c50
author: Paul Brossier <piem@piem.org>
date: Mon Aug 13 21:05:16 EDT 2018

src/spectral/dct.c: ooura supports size > 1

--- a/src/spectral/dct.c
+++ b/src/spectral/dct.c
@@ -125,7 +125,7 @@
   }
 #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);