avfilter/avf_a3dscope: fix crash when using vflip filter

pull/388/head
Paul B Mahol 2 years ago
parent 9c8b977c1e
commit 9d2b5762d3
  1. 2
      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, static void draw_dot(AVFrame *out, unsigned x, unsigned y, float z,
int r, int g, int b) int r, int g, int b)
{ {
const int linesize = out->linesize[0]; const ptrdiff_t linesize = out->linesize[0];
uint8_t *dst; uint8_t *dst;
dst = out->data[0] + y * linesize + x * 4; dst = out->data[0] + y * linesize + x * 4;

Loading…
Cancel
Save