diff options
author | Xiaohan Wang <xhwang@chromium.org> | 2020-08-28 12:51:19 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-08-30 16:18:37 +0200 |
commit | b54c7797c515dd050a39d8d00e75eab726c3c7c3 (patch) | |
tree | f545017edc00d7b8c55987e51de7ab48c22695d5 | |
parent | a0f20c3b3f197f1655a2e11c25c4f3332bc9c9a5 (diff) | |
download | ffmpeg-b54c7797c515dd050a39d8d00e75eab726c3c7c3.tar.gz |
avcodec/aacdec_template: Initialize `layout_map` on declaration
Without this change, it'll cause use-of-uninitialized-variable error.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/aacdec_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c index e8af01b084..76fffedfcb 100644 --- a/libavcodec/aacdec_template.c +++ b/libavcodec/aacdec_template.c @@ -3312,7 +3312,7 @@ static int aac_decode_frame_int(AVCodecContext *avctx, void *data, break; case TYPE_PCE: { - uint8_t layout_map[MAX_ELEM_ID*4][3]; + uint8_t layout_map[MAX_ELEM_ID*4][3] = {{0}}; int tags; int pushed = push_output_configuration(ac); |