summaryrefslogtreecommitdiff
path: root/libavformat/isom.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-18 19:39:05 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-18 19:40:08 +0100
commitd8b4ba3c5a9cff9fdd36b03d600ad38e09608daf (patch)
treee4abf4ca4d7b691dbe8928cdaf343f78532a87e9 /libavformat/isom.c
parent4a2570f50a2f348972ec8a58bb79bf5b0dd1b7ea (diff)
avformat/isom: zero MPEG4AudioConfig to avoid leaving fields uninitialized
Fixes: use of uninitialized memory Fixes: msan_uninit-mem_7f392c443e0d_1433_Crowd_Applause_01.caf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/isom.c')
-rw-r--r--libavformat/isom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/isom.c b/libavformat/isom.c
index de9d20ccab..19ec57b5df 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -461,7 +461,7 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext
return AVERROR(ENOMEM);
avio_read(pb, st->codec->extradata, len);
if (st->codec->codec_id == AV_CODEC_ID_AAC) {
- MPEG4AudioConfig cfg;
+ MPEG4AudioConfig cfg = {0};
avpriv_mpeg4audio_get_config(&cfg, st->codec->extradata,
st->codec->extradata_size * 8, 1);
st->codec->channels = cfg.channels;