aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_bitplanenoise.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-09-04 14:58:54 +0200
committerPaul B Mahol <onemda@gmail.com>2016-09-04 15:33:05 +0200
commit9833cf2ae1e8b97ba2086e155a0131fbce8a121f (patch)
tree430c9e81a79d4a8f5488f712dedb7c3066f90a50 /libavfilter/vf_bitplanenoise.c
parentee605aa730dd230cd67cff5233318634ac42a1cc (diff)
downloadffmpeg-9833cf2ae1e8b97ba2086e155a0131fbce8a121f.tar.gz
avfilter/vf_bitplanenoise: silence clang warning, do not truncate value
Diffstat (limited to 'libavfilter/vf_bitplanenoise.c')
-rw-r--r--libavfilter/vf_bitplanenoise.c2
1 files changed, 1 insertions, 1 deletions
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);
}