[FFmpeg-devel,11/11] avcodec/dcaadpcm: fix unitialized read

Submitted by Timo Rothenpieler on June 11, 2017, 2:07 p.m.

Details

Message ID 20170611140725.11936-2-timo@rothenpieler.org
State Accepted
Commit dd4b7badb416a5c2688da7310a7fe80fe4e4f209
Headers show

Commit Message

Timo Rothenpieler June 11, 2017, 2:07 p.m.
Fixes CID 1409924
---
 libavcodec/dcaadpcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavcodec/dcaadpcm.c b/libavcodec/dcaadpcm.c
index 8742c7ccf6..aff737ddb6 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];