diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-09-04 14:58:54 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-09-04 15:33:05 +0200 |
commit | 9833cf2ae1e8b97ba2086e155a0131fbce8a121f (patch) | |
tree | 430c9e81a79d4a8f5488f712dedb7c3066f90a50 /libavfilter/vf_bitplanenoise.c | |
parent | ee605aa730dd230cd67cff5233318634ac42a1cc (diff) | |
download | ffmpeg-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.c | 2 |
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); } |