Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-14 22:22:49 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-05 16:41:50 +0300
commit5fb6e39dd1c3add4dc5bd7c7f0d8100d5aadad46 (patch)
tree12fb7da9ae6083ea92f24b226f00aa6d0f0ac57c /libavcodec
parentf90c9c306f4e8334f29972b6c90201929ccce546 (diff)
avcodec/cfhd: clear idwt_buf on allocation
This avoids use of uninitialized variables and might make bugs in general easier to reproduce Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cfhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index d15cd8d67c..0e6abe04ba 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -182,7 +182,7 @@ static int alloc_buffers(AVCodecContext *avctx)
w2 = w4 * 2;
h2 = h4 * 2;
- s->plane[i].idwt_buf = av_malloc_array(height * stride, sizeof(*s->plane[i].idwt_buf));
+ s->plane[i].idwt_buf = av_mallocz_array(height * stride, sizeof(*s->plane[i].idwt_buf));
s->plane[i].idwt_tmp = av_malloc_array(height * stride, sizeof(*s->plane[i].idwt_tmp));
if (!s->plane[i].idwt_buf || !s->plane[i].idwt_tmp) {
return AVERROR(ENOMEM);