]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/aacdec_template: Initialize `layout_map` on declaration
authorXiaohan Wang <xhwang@chromium.org>
Fri, 28 Aug 2020 19:51:19 +0000 (12:51 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Aug 2020 14:18:37 +0000 (16:18 +0200)
Without this change, it'll cause use-of-uninitialized-variable error.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_template.c

index e8af01b084e331003da8d0fbfaa66f3a3fb181c4..76fffedfcb834b9b9a5f1cf6214421f6ded83bdc 100644 (file)
@@ -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);