avfilter/dctdnoiz: fix slice_h computation n2.5.4
authorClément Bœsch <u@pkh.me>
Sun, 8 Feb 2015 13:27:51 +0000 (14:27 +0100)
committerClément Bœsch <u@pkh.me>
Thu, 12 Feb 2015 19:21:56 +0000 (20:21 +0100)
commit3429714f3d046f4e2235848a60b6f63bd084e01f
treea3e2423414807f37c94dbf40e9530b57dbda0ce2
parentee902d3d2d78b1aed7d1c562d58128b450a54b02
avfilter/dctdnoiz: fix slice_h computation

ceilf() can only work if the reminder of the division is not 0.

This fixes memory errors with for instance:
  ffmpeg -f lavfi -i testsrc=s=800x500 -threads 3 -vf dctdnoiz -frames:v 1 -f null -

(cherry picked from commit eb7efaa9244720c5f2051d76d76faeec864eca7a)
libavfilter/vf_dctdnoiz.c