ptrdiff_t is the correct type for array strides and similar.
---
libavcodec/on2avc.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c
index 2a528c6..dd65dec 100644
--- a/libavcodec/on2avc.c
+++ b/libavcodec/on2avc.c
@@ -317,8 +317,9 @@ static void zero_head_and_tail(float *src, int len, int
order0, int order1)
memset(src + len - order1, 0, sizeof(*src) * order1);
}
-static void pretwiddle(float *src, float *dst, int dst_len, int tab_step,
- int step, int order0, int order1, const double **tabs)
+static void pretwiddle(float *src, float *dst, int dst_len,
+ ptrdiff_t tab_step, ptrdiff_t step,
+ int order0, int order1, const double **tabs)
{
float *src2, *out;
const double *tab;
@@ -345,7 +346,7 @@ static void pretwiddle(float *src, float *dst, int dst_len,
int tab_step,
}
static void twiddle(float *src1, float *src2, int src2_len,
- const double *tab, int tab_len, int step,
+ const double *tab, int tab_len, ptrdiff_t step,
int order0, int order1, const double **tabs)
{
int steps;
@@ -411,7 +412,8 @@ static void twiddle(float *src1, float *src2, int src2_len,
static void combine_fft(float *s0, float *s1, float *s2, float *s3, float *dst,
const float *t0, const float *t1,
- const float *t2, const float *t3, int len, int step)
+ const float *t2, const float *t3,
+ int len, ptrdiff_t step)
{
const float *h0, *h1, *h2, *h3;
float *d1, *d2;
--
2.1.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel