diff options
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r-- | libavcodec/lpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index e2c0aacc43..559a87d161 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -201,7 +201,9 @@ int ff_lpc_calc_coefs(LPCContext *s, ref[i] = fabs(lpc[i][i]); } else if (lpc_type == FF_LPC_TYPE_CHOLESKY) { LLSModel m[2]; - double var[MAX_LPC_ORDER+1], av_uninit(weight); + LOCAL_ALIGNED(32, double, var, [FFALIGN(MAX_LPC_ORDER+1,4)]); + double av_uninit(weight); + memset(var, 0, FFALIGN(MAX_LPC_ORDER+1,4)*sizeof(*var)); if(lpc_passes <= 0) lpc_passes = 2; |