avfilter/vf_gblur: fix undefined behaviour