summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2014-06-08 14:30:30 +0200
committerMichael Niedermayer <[email protected]>2014-06-25 23:15:58 +0200
commit71a4a9183f3e4faaaf83281c4b4e515faa82a77b (patch)
treed736ad81c7a2f8a1951d84aa4f41f0d126140da8
parent80588930fffbc6f26cbd8c534e63b507b6f2075c (diff)
avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is possible
Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 6e6bd5481cf42a9765c492c77754d4633092cece) Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 9f05f52798..90acf2c8c1 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -285,7 +285,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;