swscale: use standard clipping functions.