shithub: aubio

Download patch

ref: db3eb5c0b4af15b5ce9c9875c76fd6603775abf6
parent: b1743190b26e5424eb6102c81ff449c7170bd75b
parent: e680926d170422fdcd1ee7266238c57a49a6c58b
author: Paul Brossier <piem@piem.org>
date: Mon Nov 26 13:33:26 EST 2018

Merge branch 'feature/dctsimplify' into feature/mfcc_tests

--- a/src/spectral/dct.c
+++ b/src/spectral/dct.c
@@ -87,7 +87,7 @@
   {
     uint_t radix = size;
     uint_t order = 0;
-    while ((radix / 2) * 2 == radix) {
+    while ((radix >= 1) && ((radix / 2) * 2 == radix)) {
       radix /= 2;
       order++;
     }