avfilter/af_aiir: unbreak clipping detection
authorPaul B Mahol <onemda@gmail.com>
Wed, 10 Jan 2018 18:24:41 +0000 (19:24 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 10 Jan 2018 18:24:41 +0000 (19:24 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_aiir.c

index c60f339..46b1c7e 100644 (file)
@@ -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;                                            \