swscale/tests: check return value of sws_scale