projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d9b73b
)
avviddec: Fix size of linesize parameter
author
Doug Nazar
<nazard@nazar.ca>
Thu, 3 Jun 2021 10:01:30 +0000
(06:01 -0400)
committer
Doug Nazar
<nazard@nazar.ca>
Thu, 3 Jun 2021 10:01:30 +0000
(06:01 -0400)
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>
ext/libav/gstavviddec.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavviddec.c
b/ext/libav/gstavviddec.c
index
8530033
..
ec0e348
100644
(file)
--- 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;