[FFmpeg-cvslog] avfilter/vf_bitplanenoise: silence clang warning, do not truncate value

Paul B Mahol git at videolan.org
Sun Sep 4 16:34:47 EEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep  4 14:58:54 2016 +0200| [9833cf2ae1e8b97ba2086e155a0131fbce8a121f] | committer: Paul B Mahol

avfilter/vf_bitplanenoise: silence clang warning, do not truncate value

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9833cf2ae1e8b97ba2086e155a0131fbce8a121f
---

 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 6c21c95..de278bc 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);
     }
 



More information about the ffmpeg-cvslog mailing list