Stop parsing in read_header only after finding pmt, and