]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/nlmeans: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
authorClément Bœsch <u@pkh.me>
Tue, 8 May 2018 10:44:48 +0000 (12:44 +0200)
committerClément Bœsch <u@pkh.me>
Tue, 8 May 2018 10:47:38 +0000 (12:47 +0200)
libavfilter/vf_nlmeans.c

index 8b3859563268f9f6d3216305a5f30d840f91289f..82e779ce854d519d693b36df746741350f0aca31 100644 (file)
@@ -289,8 +289,8 @@ static int config_input(AVFilterLink *inlink)
     const int e = FFMAX(s->research_hsize, s->research_hsize_uv)
                 + FFMAX(s->patch_hsize,    s->patch_hsize_uv);
 
-    s->chroma_w = FF_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w);
-    s->chroma_h = FF_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
+    s->chroma_w = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w);
+    s->chroma_h = AV_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
     s->nb_planes = av_pix_fmt_count_planes(inlink->format);
 
     /* Allocate the integral image with extra edges of thickness "e"