Fix parsing of PES header