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: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/134>
This commit is contained in:
Doug Nazar 2021-06-03 06:01:30 -04:00
parent 2d9b73b76b
commit e0be2033a0

View file

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