Browse code

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

Paul B Mahol authored on 2016/09/04 21:58:54
Showing 1 changed files
... ...
@@ -187,7 +187,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
187 187
 
188 188
         stats[plane] /= s->planewidth[plane] * s->planeheight[plane];
189 189
         snprintf(key, sizeof(key), "lavfi.bitplanenoise.%d.%d", plane, s->bitplane);
190
-        snprintf(metabuf, sizeof(metabuf), "%f", 1. - 2.* fabsf((stats[plane] - 0.5)));
190
+        snprintf(metabuf, sizeof(metabuf), "%f", 1. - 2.* fabs((stats[plane] - 0.5)));
191 191
         av_dict_set(&out->metadata, key, metabuf, 0);
192 192
     }
193 193