summaryrefslogtreecommitdiff
path: root/libavcodec/dcaadpcm.c
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2017-07-22 18:20:04 +0300
committerfoo86 <foobaz86@gmail.com>2017-07-23 00:28:18 +0300
commitdd4b7badb416a5c2688da7310a7fe80fe4e4f209 (patch)
tree353f595fa5af67086278ccb17bbd329ae78b4b58 /libavcodec/dcaadpcm.c
parent34fb84a97d112d85091369e9ef9ce177a05644e9 (diff)
downloadffmpeg-dd4b7badb416a5c2688da7310a7fe80fe4e4f209.tar.gz
avcodec/dcaadpcm: fix use of uninitialized variable
Fixes CID 1409924.
Diffstat (limited to 'libavcodec/dcaadpcm.c')
-rw-r--r--libavcodec/dcaadpcm.c2
1 files changed, 1 insertions, 1 deletions
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];