swscale: simplify initialization code