diff --git a/libavfilter/vf_bm3d.c b/libavfilter/vf_bm3d.c index 8a5ae70299..75c356728e 100644 --- a/libavfilter/vf_bm3d.c +++ b/libavfilter/vf_bm3d.c @@ -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); } } }