echo-cancel: Don't overpad variable
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 14 May 2011 12:14:23 +0000 (17:44 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 16 May 2011 14:52:10 +0000 (20:22 +0530)
The padding was to be 16 bytes, not 16 elements.

src/modules/echo-cancel/adrian-aec.h

index efb9e27..0efe53e 100644 (file)
@@ -306,7 +306,7 @@ struct AEC {
   // NLMS-pw
   REAL x[NLMS_LEN + NLMS_EXT];  // tap delayed loudspeaker signal
   REAL xf[NLMS_LEN + NLMS_EXT]; // pre-whitening tap delayed signal
-  REAL w_arr[NLMS_LEN+16];      // tap weights
+  REAL w_arr[NLMS_LEN + (16 / sizeof(REAL))]; // tap weights
   REAL *w;                      // this will be a 16-byte aligned pointer into w_arr
   int j;                        // optimize: less memory copies
   double dotp_xf_xf;            // double to avoid loss of precision