From 9833cf2ae1e8b97ba2086e155a0131fbce8a121f Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 4 Sep 2016 14:58:54 +0200 Subject: [PATCH] avfilter/vf_bitplanenoise: silence clang warning, do not truncate value --- libavfilter/vf_bitplanenoise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_bitplanenoise.c b/libavfilter/vf_bitplanenoise.c index 6c21c9530a..de278bc22a 100644 --- a/libavfilter/vf_bitplanenoise.c +++ b/libavfilter/vf_bitplanenoise.c @@ -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); }