From: Paul Brossier Date: Fri, 2 Oct 2009 00:14:06 +0000 (+0200) Subject: src/mathutils.c: fix fvec_min_removal X-Git-Tag: bzr2git~222 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1498ced017e1a7817cc72913634a7e68b5160b45;p=aubio.git src/mathutils.c: fix fvec_min_removal --- diff --git a/src/mathutils.c b/src/mathutils.c index 26deb9dc..b49bb0f4 100644 --- a/src/mathutils.c +++ b/src/mathutils.c @@ -184,10 +184,10 @@ void 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; } } }