src/spectral/dct_ipp.c: allow size 1
authorPaul Brossier <piem@piem.org>
Sun, 12 Aug 2018 20:36:37 +0000 (22:36 +0200)
committerPaul Brossier <piem@piem.org>
Sun, 12 Aug 2018 20:36:37 +0000 (22:36 +0200)
src/spectral/dct_ipp.c

index 7688d56..273aa00 100644 (file)
@@ -67,8 +67,8 @@ aubio_dct_ipp_t * new_aubio_dct_ipp (uint_t size) {
   int pSpecSize, pSpecBufferSize, pBufferSize;
   IppStatus status;
 
   int pSpecSize, pSpecBufferSize, pBufferSize;
   IppStatus status;
 
-  if ((sint_t)size <= 1) {
-    AUBIO_ERR("dct: can only create with sizes greater than 1, requested %d\n",
+  if ((sint_t)size <= 0) {
+    AUBIO_ERR("dct: can only create with sizes greater than 0, requested %d\n",
         size);
     goto beach;
   }
         size);
     goto beach;
   }