Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaohan Wang <xhwang@chromium.org>2020-08-28 22:51:19 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2020-08-30 17:18:37 +0300
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);