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>
pull/350/head
Xiaohan Wang 5 years ago committed by Michael Niedermayer
parent a0f20c3b3f
commit b54c7797c5
  1. 2
      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);

Loading…
Cancel
Save