[FFmpeg-cvslog] avfilter/vf_bm3d: use av_clip_uintp2_c where clip is variable

Paul B Mahol git at videolan.org
Thu Sep 13 21:50:07 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Sep 13 20:48:08 2018 +0200| [e320f9576a4d403d8ce088c04be886f6bf1ebe26] | committer: Paul B Mahol

avfilter/vf_bm3d: use av_clip_uintp2_c where clip is variable

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e320f9576a4d403d8ce088c04be886f6bf1ebe26
---

 libavfilter/vf_bm3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
         }
     }
 }



More information about the ffmpeg-cvslog mailing list