From dd4b7badb416a5c2688da7310a7fe80fe4e4f209 Mon Sep 17 00:00:00 2001 From: foo86 Date: Sat, 22 Jul 2017 18:20:04 +0300 Subject: [PATCH] avcodec/dcaadpcm: fix use of uninitialized variable Fixes CID 1409924. --- libavcodec/dcaadpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dcaadpcm.c b/libavcodec/dcaadpcm.c index cc82241a5f..9f615e3793 100644 --- a/libavcodec/dcaadpcm.c +++ b/libavcodec/dcaadpcm.c @@ -80,7 +80,7 @@ static int64_t find_best_filter(const DCAADPCMEncContext *s, const int32_t *in, { const premultiplied_coeffs *precalc_data = s->private_data; int i, j, k = 0; - int vq; + int vq = -1; int64_t err; int64_t min_err = 1ll << 62; int64_t corr[15];