swscale: fix integer overflows in RGB pixel writing.