summaryrefslogtreecommitdiff
path: root/libavcodec/utvideoenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-09-01 21:31:22 +0200
committerDiego Biurrun <diego@biurrun.de>2016-09-08 13:51:30 +0200
commit131a85a1fed9966bbd38517f76abfac0237e39dc (patch)
tree26f3dd244813b6a621e3d4a60427522b74fc04b6 /libavcodec/utvideoenc.c
parent52730e0f867fe77b7d2353d8b44e92edb7079ca5 (diff)
utvideo: Change type of array stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
Diffstat (limited to 'libavcodec/utvideoenc.c')
-rw-r--r--libavcodec/utvideoenc.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index 4eddd98e24..ef51ed06dd 100644
--- a/libavcodec/utvideoenc.c
+++ b/libavcodec/utvideoenc.c
@@ -234,8 +234,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
return 0;
}
-static void mangle_rgb_planes(uint8_t *dst[4], int dst_stride, uint8_t *src,
- int step, int stride, int width, int height)
+static void mangle_rgb_planes(uint8_t *dst[4], ptrdiff_t dst_stride,
+ uint8_t *src, int step, ptrdiff_t stride,
+ int width, int height)
{
int i, j;
int k = 2 * dst_stride;
@@ -268,7 +269,7 @@ static void mangle_rgb_planes(uint8_t *dst[4], int dst_stride, uint8_t *src,
}
/* Write data to a plane with left prediction */
-static void left_predict(uint8_t *src, uint8_t *dst, int stride,
+static void left_predict(uint8_t *src, uint8_t *dst, ptrdiff_t stride,
int width, int height)
{
int i, j;
@@ -285,8 +286,8 @@ static void left_predict(uint8_t *src, uint8_t *dst, int stride,
}
/* Write data to a plane with median prediction */
-static void median_predict(UtvideoContext *c, uint8_t *src, uint8_t *dst, int stride,
- int width, int height)
+static void median_predict(UtvideoContext *c, uint8_t *src, uint8_t *dst,
+ ptrdiff_t stride, int width, int height)
{
int i, j;
int A, B;
@@ -387,7 +388,7 @@ static int write_huff_codes(uint8_t *src, uint8_t *dst, int dst_size,
}
static int encode_plane(AVCodecContext *avctx, uint8_t *src,
- uint8_t *dst, int stride,
+ uint8_t *dst, ptrdiff_t stride,
int width, int height, PutByteContext *pb)
{
UtvideoContext *c = avctx->priv_data;