diff mbox series

[FFmpeg-devel,3/5] avcodec/rl2: Use ptrdiff_t for stride

Message ID GV1P250MB0737C6106A6248A142FA83D68F549@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 73f104201b2c4c63f71c65bd11880c87bcb17a8a
Headers show
Series [FFmpeg-devel,1/5] avcodec/rl2: Remove wrong check | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

Andreas Rheinhardt Sept. 28, 2022, 4:35 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/rl2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/rl2.c b/libavcodec/rl2.c
index 467c4913a4..76982f0426 100644
--- a/libavcodec/rl2.c
+++ b/libavcodec/rl2.c
@@ -57,11 +57,11 @@  typedef struct Rl2Context {
  * @param video_base offset of the rle data inside the frame
  */
 static void rl2_rle_decode(Rl2Context *s, const uint8_t *in, int size,
-                               uint8_t *out, int stride, int video_base)
+                           uint8_t *out, ptrdiff_t stride, int video_base)
 {
     int base_x = video_base % s->avctx->width;
     int base_y = video_base / s->avctx->width;
-    int stride_adj = stride - s->avctx->width;
+    ptrdiff_t stride_adj = stride - s->avctx->width;
     int i;
     const uint8_t *back_frame = s->back_frame;
     const uint8_t *in_end     = in + size;