swscale-example: Check for Gray formats.