update ts_info, parse header, adaption field and PAT