parse SPS PPS and slice header