swscale/output: Fix undefined shifts