avfilter/vf_bm3d: use av_clip_uintp2_c where clip is variable
authorPaul B Mahol <onemda@gmail.com>
Thu, 13 Sep 2018 18:48:08 +0000 (20:48 +0200)
committerPaul B Mahol <onemda@gmail.com>
Thu, 13 Sep 2018 18:48:08 +0000 (20:48 +0200)
libavfilter/vf_bm3d.c

index 8a5ae70..75c3567 100644 (file)
@@ -688,7 +688,7 @@ static void do_output16(BM3DContext *s, uint8_t *dst, int dst_linesize,
                 sum_den += den;
             }
 
-            dstp[j] = av_clip_uintp2(sum_num / sum_den, depth);
+            dstp[j] = av_clip_uintp2_c(sum_num / sum_den, depth);
         }
     }
 }