avcodec/h264_ps: More completely check the bit depths