shithub: aubio

Download patch

ref: f15b8cf940ae0a55176fa9a7d071a99af0fcb1a9
parent: 8cf51c47c0961a10a5f7eecb9c20209f101137e2
author: Paul Brossier <piem@piem.org>
date: Tue May 10 19:23:42 EDT 2016

src/spectral/phasevoc.c: abort if fft creation failed

--- a/src/spectral/phasevoc.c
+++ b/src/spectral/phasevoc.c
@@ -93,6 +93,9 @@
   }
 
   pv->fft      = new_aubio_fft (win_s);
+  if (pv->fft == NULL) {
+    goto beach;
+  }
 
   /* remember old */
   pv->data     = new_fvec (win_s);