summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec_template.c
diff options
context:
space:
mode:
authorXiaohan Wang <xhwang@chromium.org>2020-08-28 12:51:19 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2020-08-30 16:18:37 +0200
commitb54c7797c515dd050a39d8d00e75eab726c3c7c3 (patch)
treef545017edc00d7b8c55987e51de7ab48c22695d5 /libavcodec/aacdec_template.c
parenta0f20c3b3f197f1655a2e11c25c4f3332bc9c9a5 (diff)
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>
Diffstat (limited to 'libavcodec/aacdec_template.c')
-rw-r--r--libavcodec/aacdec_template.c2
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);