diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 14:30:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-23 15:14:41 +0200 |
commit | f48d7abf40f3873016a9b27de89ec29b95947d28 (patch) | |
tree | 1c11faa78a5e8e99e2d2ed15458d34e1f998bfcc | |
parent | 8935e2390074cbf189ad1ab9c8f3388781d05317 (diff) | |
download | ffmpeg-f48d7abf40f3873016a9b27de89ec29b95947d28.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 1095b0118a..a8056889a7 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; |