]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_bitplanenoise.c
avfilter/vf_bitplanenoise: silence clang warning, do not truncate value
[ffmpeg] / libavfilter / vf_bitplanenoise.c
index 6c21c9530a4e74f048a6144b75cc632c8bf13de7..de278bc22aafa3b80635f27bdcb4cccac202906e 100644 (file)
@@ -187,7 +187,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
 
         stats[plane] /= s->planewidth[plane] * s->planeheight[plane];
         snprintf(key, sizeof(key), "lavfi.bitplanenoise.%d.%d", plane, s->bitplane);
-        snprintf(metabuf, sizeof(metabuf), "%f", 1. - 2.* fabsf((stats[plane] - 0.5)));
+        snprintf(metabuf, sizeof(metabuf), "%f", 1. - 2.* fabs((stats[plane] - 0.5)));
         av_dict_set(&out->metadata, key, metabuf, 0);
     }