ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Fri Nov 25 19:29:19 
2022 +0100| [9d2b5762d3a29e4b2758d3ca1a7d70e362c6febf] | committer: Paul B Mahol

avfilter/avf_a3dscope: fix crash when using vflip filter

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d2b5762d3a29e4b2758d3ca1a7d70e362c6febf
---

 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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to