Library for decoding and generation of MPEG TS and DVB PSI tables