[FFmpeg-cvslog] avfilter/af_aiir: unbreak clipping detection
Paul B Mahol
git at videolan.org
Wed Jan 10 20:26:17 EET 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jan 10 19:24:41 2018 +0100| [de5b12c93f85098407e9a5c59806c5309e7ea13b] | committer: Paul B Mahol
avfilter/af_aiir: unbreak clipping detection
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de5b12c93f85098407e9a5c59806c5309e7ea13b
---
libavfilter/af_aiir.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c
index c60f339411..46b1c7e698 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -133,10 +133,10 @@ static int iir_ch_## name(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
oc[0] = sample; \
sample *= og; \
if (need_clipping && sample < min) { \
- *clippings++; \
+ (*clippings)++; \
dst[n] = min; \
} else if (need_clipping && sample > max) { \
- *clippings++; \
+ (*clippings)++; \
dst[n] = max; \
} else { \
dst[n] = sample; \
@@ -188,10 +188,10 @@ static int iir_ch_serial_## name(AVFilterContext *ctx, void *arg, int ch, int nb
o0 *= og; \
\
if (need_clipping && o0 < min) { \
- *clippings++; \
+ (*clippings)++; \
dst[n] = min; \
} else if (need_clipping && o0 > max) { \
- *clippings++; \
+ (*clippings)++; \
dst[n] = max; \
} else { \
dst[n] = o0; \
More information about the ffmpeg-cvslog
mailing list