shithub: aubio

Download patch

ref: 1498ced017e1a7817cc72913634a7e68b5160b45
parent: acf7d3045a0f9ce6157b2ddfa26224f5e4a17460
author: Paul Brossier <piem@piem.org>
date: Thu Oct 1 22:14:06 EDT 2009

src/mathutils.c: fix fvec_min_removal

--- a/src/mathutils.c
+++ b/src/mathutils.c
@@ -184,10 +184,10 @@
 fvec_min_removal (fvec_t * o)
 {
   uint_t i, j;
-  smpl_t mini = fvec_min (mag);
+  smpl_t mini = fvec_min (o);
   for (i = 0; i < o->channels; i++) {
     for (j = 0; j < o->length; j++) {
-      mag->data[i][j] -= mini;
+      o->data[i][j] -= mini;
     }
   }
 }