avfilter/vf_floodfill: better fix for crash