From e0be2033a03547135ffda9faa596ffdba939a61e Mon Sep 17 00:00:00 2001 From: Doug Nazar Date: Thu, 3 Jun 2021 06:01:30 -0400 Subject: [PATCH] avviddec: Fix size of linesize parameter Although avcodec_align_dimensions2() only copies 4 ints, it expects a buffer of at least AV_NUM_DATA_POINTERS (8) ints. Part-of: --- ext/libav/gstavviddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 8530033d45..ec0e34870e 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -674,7 +674,7 @@ gst_ffmpegvideodec_prepare_dr_pool (GstFFMpegVidDec * ffmpegdec, GstVideoAlignment align; GstAllocator *allocator = NULL; gint width, height; - gint linesize_align[4]; + gint linesize_align[AV_NUM_DATA_POINTERS]; gint i; gsize max_align;