summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/decode/vd_lavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index cf1b059f5b..66da18b08a 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -933,7 +933,7 @@ static int get_buffer2_direct(AVCodecContext *avctx, AVFrame *pic, int flags)
int w = pic->width;
int h = pic->height;
- int linesize_align[AV_NUM_DATA_POINTERS];
+ int linesize_align[AV_NUM_DATA_POINTERS] = {0};
avcodec_align_dimensions2(avctx, &w, &h, linesize_align);
// We assume that different alignments are just different power-of-2s.