avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Jun 2014 12:30:30 +0000 (14:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Jun 2014 13:56:15 +0000 (15:56 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6e6bd5481cf42a9765c492c77754d4633092cece)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alsdec.c

index 27d1902..89cc8a6 100644 (file)
@@ -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;