private void ValidateTable(BitSplitter bs)
{
int pointer = (int)bs.GetInteger(8);
if (pointer != 0) throw new DemuxException("Non-zero pointers are not currently supported");
int table_id = (int)bs.GetInteger(8);
if (table_id != 0x02) throw new DemuxException("Wrong table ID for PMT");
SectionSyntax = bs.GetFlag();
if (!SectionSyntax) throw new DemuxException("Invalid PMT: incorrect section syntax");
bool zero = bs.GetFlag();
if (zero) throw new DemuxException("Invalid PMT: zero bit wasn't zero");
}