avoid assert() on invalid argument
handle PSI sections in TS encaps
add PSI generator (PAT + PMT)