aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-09 13:00:24 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-09 13:24:38 +0200
commit9b17273c77ee2868ef34abc49efa70260453235b (patch)
treed72f6922c192dd312fd49c9df401c03a9ecc8abf
parent8d0082bedae7cc3a4c3153a83c9ae94c74ae7431 (diff)
downloadffmpeg-9b17273c77ee2868ef34abc49efa70260453235b.tar.gz
avdevice/xv: Increase array size
av_image_copy() expects an array of four pointers according to its declaration; although it currently only touches pointers that are actually in use (depending upon the pixel format) this might change at any time (as has already happened for the linesizes in d7bc52bf456deba0f32d9fe5c288ec441f1ebef5). This fixes ticket #9264 as well as a warning from GCC 11. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavdevice/xv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/xv.c b/libavdevice/xv.c
index 24ba3179f6..a346f8e306 100644
--- a/libavdevice/xv.c
+++ b/libavdevice/xv.c
@@ -296,7 +296,7 @@ static int write_picture(AVFormatContext *s, uint8_t *input_data[4],
{
XVContext *xv = s->priv_data;
XvImage *img = xv->yuv_image;
- uint8_t *data[3] = {
+ uint8_t *data[4] = {
img->data + img->offsets[0],
img->data + img->offsets[1],
img->data + img->offsets[2]