diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 1d52edf744..f54f6f883d 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -175,7 +175,7 @@ int ff_lpc_calc_coefs(LPCContext *s, int omethod, int max_shift, int zero_shift) { double autoc[MAX_LPC_ORDER+1]; - double ref[MAX_LPC_ORDER]; + double ref[MAX_LPC_ORDER] = { 0 }; double lpc[MAX_LPC_ORDER][MAX_LPC_ORDER]; int i, j, pass = 0; int opt_order; diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h index c323230b19..b36b19e6b2 100644 --- a/libavcodec/lpc.h +++ b/libavcodec/lpc.h @@ -153,7 +153,7 @@ static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order, int normalize) { int i, j; - LPC_TYPE err; + LPC_TYPE err = { 0 }; LPC_TYPE *lpc_last = lpc; av_assert2(normalize || !fail);