diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-09-22 09:15:13 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-09-22 22:56:57 +0200 |
commit | 1242d172e2fbcce85b5ee264a09879eb55b59cca (patch) | |
tree | 1bfa4d3bdc289ac54fb5ebb9b22b2287d5c3ee94 /libavfilter/vf_lut3d.c | |
parent | c192ebc80600e604601a24d513ce94768b2663af (diff) | |
download | ffmpeg-1242d172e2fbcce85b5ee264a09879eb55b59cca.tar.gz |
avfilter: use ptrdiff_t instead of int for linesize
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_lut3d.c')
-rw-r--r-- | libavfilter/vf_lut3d.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index db38d41932..4edcc2c7a7 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -1321,7 +1321,7 @@ const AVFilter ff_vf_lut3d = { static void update_clut_packed(LUT3DContext *lut3d, const AVFrame *frame) { const uint8_t *data = frame->data[0]; - const int linesize = frame->linesize[0]; + const ptrdiff_t linesize = frame->linesize[0]; const int w = lut3d->clut_width; const int step = lut3d->clut_step; const uint8_t *rgba_map = lut3d->clut_rgba_map; @@ -1360,9 +1360,9 @@ static void update_clut_planar(LUT3DContext *lut3d, const AVFrame *frame) const uint8_t *datag = frame->data[0]; const uint8_t *datab = frame->data[1]; const uint8_t *datar = frame->data[2]; - const int glinesize = frame->linesize[0]; - const int blinesize = frame->linesize[1]; - const int rlinesize = frame->linesize[2]; + const ptrdiff_t glinesize = frame->linesize[0]; + const ptrdiff_t blinesize = frame->linesize[1]; + const ptrdiff_t rlinesize = frame->linesize[2]; const int w = lut3d->clut_width; const int level = lut3d->lutsize; const int level2 = lut3d->lutsize2; @@ -1407,9 +1407,9 @@ static void update_clut_float(LUT3DContext *lut3d, const AVFrame *frame) const uint8_t *datag = frame->data[0]; const uint8_t *datab = frame->data[1]; const uint8_t *datar = frame->data[2]; - const int glinesize = frame->linesize[0]; - const int blinesize = frame->linesize[1]; - const int rlinesize = frame->linesize[2]; + const ptrdiff_t glinesize = frame->linesize[0]; + const ptrdiff_t blinesize = frame->linesize[1]; + const ptrdiff_t rlinesize = frame->linesize[2]; const int w = lut3d->clut_width; const int level = lut3d->lutsize; const int level2 = lut3d->lutsize2; |