swscale/utils: Limit filter shifting so as not to read from prior the array