diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 14:30:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 14:32:41 +0200 |
commit | 3b977a6ded41b893f4fa1587490c8c98577ac22b (patch) | |
tree | 78686ee10a6d29ae9b4e3b4450921c181cf0275e | |
parent | 20883401735ae7c070ae874bbb2c7027c368ed67 (diff) | |
download | ffmpeg-3b977a6ded41b893f4fa1587490c8c98577ac22b.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>
-rw-r--r-- | libavcodec/alsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 1d69c7e39a..3f2157f69b 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -283,7 +283,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; |