From 9d2b5762d3a29e4b2758d3ca1a7d70e362c6febf Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 25 Nov 2022 19:29:19 +0100 Subject: [PATCH] avfilter/avf_a3dscope: fix crash when using vflip filter --- libavfilter/avf_a3dscope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avf_a3dscope.c b/libavfilter/avf_a3dscope.c index f3bb39feaf..089c8d8c01 100644 --- a/libavfilter/avf_a3dscope.c +++ b/libavfilter/avf_a3dscope.c @@ -209,7 +209,7 @@ static void view_matrix(const float eye[3], static void draw_dot(AVFrame *out, unsigned x, unsigned y, float z, int r, int g, int b) { - const int linesize = out->linesize[0]; + const ptrdiff_t linesize = out->linesize[0]; uint8_t *dst; dst = out->data[0] + y * linesize + x * 4;