swscale: fix sign extensions in yuv planar conversion