diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-09-01 20:48:10 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-09-07 11:30:18 +0200 |
commit | 52730e0f867fe77b7d2353d8b44e92edb7079ca5 (patch) | |
tree | 94c47fdbe0f23f0f199fbccefa8a4a16ef5e4dde /libavcodec/iirfilter.c | |
parent | 6b52762951fa138eef59e2628dabb389e0500e40 (diff) | |
download | ffmpeg-52730e0f867fe77b7d2353d8b44e92edb7079ca5.tar.gz |
iir_filter: Change type of array stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
Diffstat (limited to 'libavcodec/iirfilter.c')
-rw-r--r-- | libavcodec/iirfilter.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c index 442c837338..4116d5c503 100644 --- a/libavcodec/iirfilter.c +++ b/libavcodec/iirfilter.c @@ -28,6 +28,7 @@ #include "libavutil/attributes.h" #include "libavutil/common.h" +#include "libavutil/log.h" #include "iirfilter.h" @@ -278,7 +279,8 @@ av_cold struct FFIIRFilterState *ff_iir_filter_init_state(int order) void ff_iir_filter(const struct FFIIRFilterCoeffs *c, struct FFIIRFilterState *s, int size, - const int16_t *src, int sstep, int16_t *dst, int dstep) + const int16_t *src, ptrdiff_t sstep, + int16_t *dst, ptrdiff_t dstep) { if (c->order == 2) { FILTER_O2(int16_t, S16) @@ -291,7 +293,8 @@ void ff_iir_filter(const struct FFIIRFilterCoeffs *c, void ff_iir_filter_flt(const struct FFIIRFilterCoeffs *c, struct FFIIRFilterState *s, int size, - const float *src, int sstep, float *dst, int dstep) + const float *src, ptrdiff_t sstep, + float *dst, ptrdiff_t dstep) { if (c->order == 2) { FILTER_O2(float, FLT) |