[FFmpeg-cvslog] avcodec/aacdec_template: Initialize `layout_map` on declaration

Xiaohan Wang git at videolan.org
Sun Aug 30 17:22:03 EEST 2020


ffmpeg | branch: master | Xiaohan Wang <xhwang at chromium.org> | Fri Aug 28 12:51:19 2020 -0700| [b54c7797c515dd050a39d8d00e75eab726c3c7c3] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b54c7797c515dd050a39d8d00e75eab726c3c7c3
---

 libavcodec/aacdec_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);



More information about the ffmpeg-cvslog mailing list