summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-18 20:50:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-18 20:50:23 +0200
commit7e104647a3556fc61a139483cee1cb7dfa2dc5bd (patch)
tree369b80b8de186af6053d9f43f0584058bb3a74e3 /libavcodec
parentef16501aebed43e34a3721336e8bee732eca2877 (diff)
avcodec/alsdec: Use av_mallocz_array() for chan_data to ensure the arrays never contain random data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/alsdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index f85f1e8ccf..030c331a32 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -1731,9 +1731,9 @@ static av_cold int decode_init(AVCodecContext *avctx)
// allocate and assign channel data buffer for mcc mode
if (sconf->mc_coding) {
- ctx->chan_data_buffer = av_malloc_array(num_buffers * num_buffers,
+ ctx->chan_data_buffer = av_mallocz_array(num_buffers * num_buffers,
sizeof(*ctx->chan_data_buffer));
- ctx->chan_data = av_malloc_array(num_buffers,
+ ctx->chan_data = av_mallocz_array(num_buffers,
sizeof(*ctx->chan_data));
ctx->reverted_channels = av_malloc_array(num_buffers,
sizeof(*ctx->reverted_channels));