|
From: <ni...@us...> - 2009-01-02 09:10:44
|
Update of /cvsroot/dvbtools/dvbstream In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19100 Modified Files: dvbstream.c Log Message: fixed support for ts2ps: pid 0 is always 0, while the 2 other pids are shifted by 1 position Index: dvbstream.c =================================================================== RCS file: /cvsroot/dvbtools/dvbstream/dvbstream.c,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** dvbstream.c 24 Mar 2008 18:28:16 -0000 1.62 --- dvbstream.c 2 Jan 2009 09:10:35 -0000 1.63 *************** *** 1363,1367 **** } ! if ((output_type==RTP_PS) && (npids!=2)) { fprintf(stderr,"ERROR: PS requires exactly two PIDS - video and audio.\n"); exit(1); --- 1363,1367 ---- } ! if ((output_type==RTP_PS) && (npids!=3)) { fprintf(stderr,"ERROR: PS requires exactly two PIDS - video and audio.\n"); exit(1); *************** *** 1551,1555 **** } else if (output_type==RTP_PS) { if (read(fd_dvr,buf,TS_SIZE) > 0) { ! my_ts_to_ps((uint8_t*)buf, pids[0], pids[1]); } else if(use_stdin) break; } else if(output_type==MAP_TS) { --- 1551,1555 ---- } else if (output_type==RTP_PS) { if (read(fd_dvr,buf,TS_SIZE) > 0) { ! my_ts_to_ps((uint8_t*)buf, pids[1], pids[2]); } else if(use_stdin) break; } else if(output_type==MAP_TS) { |