avfilter/vf_scale_npp: fix out-of-bounds reads