h264_ps: properly check cropping parameters against overflow