From: Michael Niedermayer Date: Sun, 8 Jun 2014 12:30:30 +0000 (+0200) Subject: avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is... X-Git-Tag: n2.4-dev~669 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/6e6bd5481cf42a9765c492c77754d4633092cece?ds=sidebyside avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is possible Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index ace6974..33d6869 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -282,7 +282,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;