avcodec/h264: Be more tolerant to changing pps id between slices