ffmpeg | branch: release/4.4 | Andreas Rheinhardt <[email protected]> | Sat Oct 9 13:00:24 2021 +0200| [116dddb928f131226b5c12da8ebab44c660154c1] | committer: Andreas Rheinhardt
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 <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]> (cherry picked from commit 9b17273c77ee2868ef34abc49efa70260453235b) > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=116dddb928f131226b5c12da8ebab44c660154c1 --- libavdevice/xv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/xv.c b/libavdevice/xv.c index 50dc4e0d04..33507291d2 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] _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
