projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf29c8d
)
echo-cancel: Fix zeroing of w in AEC_leaky()
author
Peter Meerwald
<p.meerwald@bct-electronic.com>
Wed, 13 Feb 2013 16:26:54 +0000
(17:26 +0100)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Thu, 14 Feb 2013 14:45:54 +0000
(16:45 +0200)
bug probably caused by alignment requirement; sizeof(a->w) is a pointer, sizeof(a->w_arr) is an array
Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
src/modules/echo-cancel/adrian-aec.c
patch
|
blob
|
history
diff --git
a/src/modules/echo-cancel/adrian-aec.c
b/src/modules/echo-cancel/adrian-aec.c
index
73505a0
..
7a7bce4
100644
(file)
--- a/
src/modules/echo-cancel/adrian-aec.c
+++ b/
src/modules/echo-cancel/adrian-aec.c
@@
-174,7
+174,7
@@
static void AEC_leaky(AEC *a)
} else if (1 == a->hangover) {
--(a->hangover);
// My Leaky NLMS is to erase vector w when hangover expires
- memset(a->w
, 0, sizeof(a->w
));
+ memset(a->w
_arr, 0, sizeof(a->w_arr
));
}
}
}