diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-09-20 14:09:43 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-09-29 17:54:24 +0200 |
commit | 2caa93b813adc5dbb7771dfe615da826a2947d18 (patch) | |
tree | 5ef76a2c6ebf7ec7ccbda1e4d64fb3a9ad2bc04d /libavcodec/mpegaudiodsp_template.c | |
parent | 15b4f494fc6bddb8178fdb5aed18b420efc75e22 (diff) | |
download | ffmpeg-2caa93b813adc5dbb7771dfe615da826a2947d18.tar.gz |
mpegaudiodsp: Change type of array stride parameters to ptrdiff_t
This avoids SIMD-optimized functions having to sign-extend their
stride argument manually to be able to do pointer arithmetic.
Diffstat (limited to 'libavcodec/mpegaudiodsp_template.c')
-rw-r--r-- | libavcodec/mpegaudiodsp_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodsp_template.c b/libavcodec/mpegaudiodsp_template.c index 621bbd4eba..b8836c9af7 100644 --- a/libavcodec/mpegaudiodsp_template.c +++ b/libavcodec/mpegaudiodsp_template.c @@ -120,7 +120,7 @@ DECLARE_ALIGNED(16, MPA_INT, RENAME(ff_mpa_synth_window))[512+256]; void RENAME(ff_mpadsp_apply_window)(MPA_INT *synth_buf, MPA_INT *window, int *dither_state, OUT_INT *samples, - int incr) + ptrdiff_t incr) { register const MPA_INT *w, *w2, *p; int j; @@ -176,7 +176,7 @@ void RENAME(ff_mpadsp_apply_window)(MPA_INT *synth_buf, MPA_INT *window, void RENAME(ff_mpa_synth_filter)(MPADSPContext *s, MPA_INT *synth_buf_ptr, int *synth_buf_offset, MPA_INT *window, int *dither_state, - OUT_INT *samples, int incr, + OUT_INT *samples, ptrdiff_t incr, MPA_INT *sb_samples) { MPA_INT *synth_buf; |