aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-08 14:30:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-25 16:35:24 +0200
commitb94621ac6ba6ab12476c81218c88f43bd2f1d27b (patch)
treee8c6f443076c430bd4b068a32af2260f09fb38df /libavcodec/alsdec.c
parenta2b4e38729cacd9c4dce72609b9c93bf438f7d2e (diff)
downloadffmpeg-b94621ac6ba6ab12476c81218c88f43bd2f1d27b.tar.gz
avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is possible
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 6e6bd5481cf42a9765c492c77754d4633092cece) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index e7aeb0c7f0..5e08295f2a 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -280,7 +280,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
GetBitContext gb;
uint64_t ht_size;
int i, config_offset;
- MPEG4AudioConfig m4ac;
+ MPEG4AudioConfig m4ac = {0};
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
uint32_t als_id, header_size, trailer_size;