projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acf7d30
)
src/mathutils.c: fix fvec_min_removal
author
Paul Brossier
<piem@piem.org>
Fri, 2 Oct 2009 00:14:06 +0000
(
02:14
+0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 2 Oct 2009 00:14:06 +0000
(
02:14
+0200)
src/mathutils.c
patch
|
blob
|
history
diff --git
a/src/mathutils.c
b/src/mathutils.c
index 26deb9dc6cb46d32ecc9ad4ed941471b15c09226..b49bb0f4ac6de204e544b14e93027e1d9391ef10 100644
(file)
--- 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;
}
}
}