aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_pullup.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-25 17:49:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-25 18:22:31 +0200
commit6dffc8f5aaab6b20385f0a0d9ef95cec7d6cdd4b (patch)
treed99a2a9ba55f81b1f37ffe28c0a31a5caaf28ac9 /libavfilter/vf_pullup.c
parent1ace0ca60ff8c953f0029e58a9ca03dd84425ca2 (diff)
downloadffmpeg-6dffc8f5aaab6b20385f0a0d9ef95cec7d6cdd4b.tar.gz
avfilter/vf_pullup: use ptrdiff_t as stride argument for dsp functions
This should avoid issues on x86_64 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_pullup.c')
-rw-r--r--libavfilter/vf_pullup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c
index 13e06253c7..85e6ac4923 100644
--- a/libavfilter/vf_pullup.c
+++ b/libavfilter/vf_pullup.c
@@ -69,7 +69,7 @@ static int query_formats(AVFilterContext *ctx)
#define ABS(a) (((a) ^ ((a) >> 31)) - ((a) >> 31))
-static int diff_c(const uint8_t *a, const uint8_t *b, int s)
+static int diff_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
{
int i, j, diff = 0;
@@ -83,7 +83,7 @@ static int diff_c(const uint8_t *a, const uint8_t *b, int s)
return diff;
}
-static int comb_c(const uint8_t *a, const uint8_t *b, int s)
+static int comb_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
{
int i, j, comb = 0;
@@ -98,7 +98,7 @@ static int comb_c(const uint8_t *a, const uint8_t *b, int s)
return comb;
}
-static int var_c(const uint8_t *a, const uint8_t *b, int s)
+static int var_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
{
int i, j, var = 0;
@@ -531,7 +531,7 @@ static void pullup_release_frame(PullupFrame *f)
static void compute_metric(PullupContext *s, int *dest,
PullupField *fa, int pa, PullupField *fb, int pb,
- int (*func)(const uint8_t *, const uint8_t *, int))
+ int (*func)(const uint8_t *, const uint8_t *, ptrdiff_t))
{
int mp = s->metric_plane;
int xstep = 8;