[11/15] on2avc: Change type of array stride parameters to ptrdiff_t

Message ID 1473178294-16959-11-git-send-email-diego@biurrun.de
State New
Headers show

Commit Message

Diego Biurrun Sept. 6, 2016, 4:11 p.m.
ptrdiff_t is the correct type for array strides and similar.
---
 libavcodec/on2avc.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Comments

Luca Barbato Sept. 7, 2016, 11:37 a.m. | #1
On 06/09/16 18:11, Diego Biurrun wrote:
> ptrdiff_t is the correct type for array strides and similar.
> ---
>  libavcodec/on2avc.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 

Ok.

Patch

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;