OSDN Git Service

fix many bugs.
[rec10/rec10-git.git] / epgdump / psi.c
index bfeaeda..c6a43ee 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "psi.h"
 
+// 2-STD-B10v4_6.pdf p178 (190/399)
 int parsePAThead(unsigned char *data, PAThead *path) {
        int boff = 0;
 
@@ -91,6 +92,7 @@ void dumpPAT(unsigned char *ptr, SECcache *secs, int count, int *pmtpids)
        return;
 }
 
+// 2-STD-B10v4_6.pdf p180 (192/399(
 int parsePMThead(unsigned char *data, PMThead *pmth) {
        int boff = 0;
 
@@ -165,13 +167,14 @@ void dumpPMT(unsigned char *ptr, SECcache *secs, int count, int *dsmccpids)
                printf("PMTb=(0x%x:%d:%d)\n", 
                        pmtb.stream_type , pmtb.elementary_PID , pmtb.ES_info_length);
 */
+               // 2-STD-B24v5_4-3p3.pdf p11 (25/125)
                if ( pmtb.stream_type == 0x0B || pmtb.stream_type == 0x0D ) {
                        for ( i = 1; i < count; i++ ) {
                                if ( secs[i].pid == pmtb.elementary_PID ) {
                                        break;
                                }
                                if ( secs[i].pid == 0 ) {
-                                       printf("PMT: Adding PID(0x%04x) to secs[%d]\n", pmtb.elementary_PID, i);
+                                       //printf("PMT: Adding PID(0x%04x) to secs[%d]\n", pmtb.elementary_PID, i);
                                        secs[i].pid = pmtb.elementary_PID;
                                        break;
                                }
@@ -181,7 +184,7 @@ void dumpPMT(unsigned char *ptr, SECcache *secs, int count, int *dsmccpids)
                                        break;
                                }
                                if ( dsmccpids[i] == 0 ) {
-                                       printf("PMT: Adding PID(0x%04x) to dsmccpids[%d]\n", pmtb.elementary_PID, i);
+                                       //printf("PMT: Adding PID(0x%04x) to dsmccpids[%d]\n", pmtb.elementary_PID, i);
                                        dsmccpids[i] = pmtb.elementary_PID;
                                        break;
                                }