avfilter/vf_bwdif: fix heap-buffer overflow