• Clément Bœsch's avatar
    avfilter/dctdnoiz: fix slice_h computation · 3429714f
    Clément Bœsch authored
    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 eb7efaa9)
    3429714f