swscale: factor should_dither out