aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-08-23 23:26:35 +0200
committerDiego Biurrun <diego@biurrun.de>2016-08-26 11:36:53 +0200
commit87c6c78604e4dd16f1f45862b27ca006da010527 (patch)
tree9cb7a7035976e7e8d7cabedcfe594eb5f4e71496 /tests
parentd9d26a3674f31f482f54e936fcb382160830877a (diff)
downloadffmpeg-87c6c78604e4dd16f1f45862b27ca006da010527.tar.gz
vp8: Change type of stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/vp8dsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkasm/vp8dsp.c b/tests/checkasm/vp8dsp.c
index 0260d631ba..40e4061228 100644
--- a/tests/checkasm/vp8dsp.c
+++ b/tests/checkasm/vp8dsp.c
@@ -171,7 +171,7 @@ static void check_idct_dc4(void)
for (chroma = 0; chroma <= 1; chroma++) {
void (*idct4dc)(uint8_t *, int16_t[4][16], ptrdiff_t) = chroma ? d.vp8_idct_dc_add4uv : d.vp8_idct_dc_add4y;
if (check_func(idct4dc, "vp8_idct_dc_add4%s", chroma ? "uv" : "y")) {
- int stride = chroma ? 8 : 16;
+ ptrdiff_t stride = chroma ? 8 : 16;
int w = chroma ? 2 : 4;
for (i = 0; i < 4; i++) {
int blockx = 4 * (i % w);
@@ -365,7 +365,7 @@ static void randomize_loopfilter_buffers(int lineoff, int str,
}
// Fill the buffer with random pixels
-static void fill_loopfilter_buffers(uint8_t *buf, int stride, int w, int h)
+static void fill_loopfilter_buffers(uint8_t *buf, ptrdiff_t stride, int w, int h)
{
int x, y;
for (y = 0; y < h; y++)