aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tests
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-09-07 17:02:06 +0200
committerDiego Biurrun <diego@biurrun.de>2016-09-29 14:48:03 +0200
commit2ec9fa5ec60dcd10e1cb10d8b4e4437e634ea428 (patch)
treeda4a550527ba5dc67e81e3f384b048fc2250f583 /libavcodec/tests
parentb2939a75270bc7e971462648168aa3a2a48c1c8c (diff)
downloadffmpeg-2ec9fa5ec60dcd10e1cb10d8b4e4437e634ea428.tar.gz
idct: Change type of array stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
Diffstat (limited to 'libavcodec/tests')
-rw-r--r--libavcodec/tests/dct.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/tests/dct.c b/libavcodec/tests/dct.c
index 6c6a4e0d0d..84ad5f3e80 100644
--- a/libavcodec/tests/dct.c
+++ b/libavcodec/tests/dct.c
@@ -253,7 +253,7 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed)
DECLARE_ALIGNED(8, static uint8_t, img_dest)[64];
DECLARE_ALIGNED(8, static uint8_t, img_dest1)[64];
-static void idct248_ref(uint8_t *dest, int linesize, int16_t *block)
+static void idct248_ref(uint8_t *dest, ptrdiff_t linesize, int16_t *block)
{
static int init;
static double c8[8][8];
@@ -334,7 +334,8 @@ static void idct248_ref(uint8_t *dest, int linesize, int16_t *block)
}
static void idct248_error(const char *name,
- void (*idct248_put)(uint8_t *dest, int line_size,
+ void (*idct248_put)(uint8_t *dest,
+ ptrdiff_t line_size,
int16_t *block),
int speed)
{