[FFmpeg-cvslog] avcodec/dcaadpcm: fix use of uninitialized variable
foo86
git at videolan.org
Sun Jul 23 00:35:43 EEST 2017
ffmpeg | branch: master | foo86 <foobaz86 at gmail.com> | Sat Jul 22 18:20:04 2017 +0300| [dd4b7badb416a5c2688da7310a7fe80fe4e4f209] | committer: foo86
avcodec/dcaadpcm: fix use of uninitialized variable
Fixes CID 1409924.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd4b7badb416a5c2688da7310a7fe80fe4e4f209
---
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];
More information about the ffmpeg-cvslog
mailing list