]> git.sesse.net Git - ffmpeg/commit
avfilter/dctdnoiz: fix slice_h computation
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>
Sun, 8 Feb 2015 13:31:29 +0000 (14:31 +0100)
commiteb7efaa9244720c5f2051d76d76faeec864eca7a
tree64453dc39bf55b513bcbef60a676353d0f9109a9
parent009a57b4792e1abb494954b1d7d3bc29fc7fb6b6
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 -
libavfilter/vf_dctdnoiz.c