summaryrefslogtreecommitdiffstats
path: root/libavcodec/lpc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-12 19:10:47 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-14 20:25:52 +0100
commit60e0ee7ca25bd3bea54043b0607efe4cd51acaf3 (patch)
treeeccc2ad95899119963ce2617cce9c306e8398ca5 /libavcodec/lpc.c
parent3a6ddfb8745e4b306a5637927fb057f630345e2f (diff)
downloadffmpeg-streaming-60e0ee7ca25bd3bea54043b0607efe4cd51acaf3.zip
ffmpeg-streaming-60e0ee7ca25bd3bea54043b0607efe4cd51acaf3.tar.gz
lpc: always initialize ref and err
CC: libav-stable@libav.org Bug-Id: CID 29585 / CID 700759
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r--libavcodec/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index fbd1bdf..1482e57 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -174,7 +174,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;
OpenPOWER on IntegriCloud