mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
2d9b73b76b
commit
e0be2033a0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue