Commit d4065a9f authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '60e0ee7c'

* commit '60e0ee7c':
  lpc: always initialize ref and err

The initialization is not needed, its merged anyway as it might
help suppressing warnings and might make the code more robust against
future changes

See: c4a36b6f
See: 0dd99628Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a5adeff4 60e0ee7c
...@@ -175,7 +175,7 @@ int ff_lpc_calc_coefs(LPCContext *s, ...@@ -175,7 +175,7 @@ int ff_lpc_calc_coefs(LPCContext *s,
int omethod, int max_shift, int zero_shift) int omethod, int max_shift, int zero_shift)
{ {
double autoc[MAX_LPC_ORDER+1]; 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]; double lpc[MAX_LPC_ORDER][MAX_LPC_ORDER];
int i, j, pass = 0; int i, j, pass = 0;
int opt_order; int opt_order;
......
...@@ -153,7 +153,7 @@ static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order, ...@@ -153,7 +153,7 @@ static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order,
int normalize) int normalize)
{ {
int i, j; int i, j;
LPC_TYPE err; LPC_TYPE err = { 0 };
LPC_TYPE *lpc_last = lpc; LPC_TYPE *lpc_last = lpc;
av_assert2(normalize || !fail); av_assert2(normalize || !fail);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment