avfilter/vf_avgblur: fix heap-buffer overflow