diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-01-10 21:24:41 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-01-10 21:24:41 +0300 |
commit | de5b12c93f85098407e9a5c59806c5309e7ea13b (patch) | |
tree | 706aee179c64583fd507c59739ce5918e9997f9d /libavfilter | |
parent | ea25b7b41cb121adaa2234fe7511d2f2d98dd1e6 (diff) |
avfilter/af_aiir: unbreak clipping detection
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_aiir.c | 8 |
1 files 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; \ |