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

Timo Rothenpieler timo at rothenpieler.org
Sun Jun 11 17:07:25 EEST 2017


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 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];
-- 
2.13.0



More information about the ffmpeg-devel mailing list