[FFmpeg-devel] [PATCH 2/2] avcodec/dcaadpcm: fix use of uninitialized variable
foo86
foobaz86 at gmail.com
Sat Jul 22 20:50:12 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 e00f81f011..99cbb40172 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.11.0
More information about the ffmpeg-devel
mailing list