]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_dctdnoiz.c
avfilter/vf_removelogo: Add () to protect the argument of apply_mask_fudge_factor()
[ffmpeg] / libavfilter / vf_dctdnoiz.c
index 61438bb1243a4ffc02d09c0b8c75daec2678151f..098a119aba6a632afce6780b175aba8ca69cec1d 100644 (file)
@@ -534,7 +534,7 @@ static int config_input(AVFilterLink *inlink)
     /* each slice will need to (pre & re)process the top and bottom block of
      * the previous one in in addition to its processing area. This is because
      * each pixel is averaged by all the surrounding blocks */
-    slice_h = (int)ceilf(s->pr_height / s->nb_threads) + (s->bsize - 1) * 2;
+    slice_h = (int)ceilf(s->pr_height / (float)s->nb_threads) + (s->bsize - 1) * 2;
     for (i = 0; i < s->nb_threads; i++) {
         s->slices[i] = av_malloc_array(linesize, slice_h * sizeof(*s->slices[i]));
         if (!s->slices[i])