/* A simple filter (stdin -> stdout) to extract multiple streams from a multiplexed TS. Specify the PID on the command-line Updated 29th January 2003 - Added some error checking and reporting. */ #include #include #include int main(int argc, char **argv) { int pid,n; int filters[8192]; unsigned int i=0; unsigned int j=0; unsigned char buf[188]; unsigned char my_cc[8192]; int errors=0; for (i=0;i<8192;i++) { filters[i]=0; my_cc[i]=0xff;} for (i=1;i