void GetEITSDTInfo(FILE *infile, SECcache *secs, int count) { SECcache *bsecs; SVT_CONTROL *svtcur; int pid; while((bsecs = readTS(infile, secs, count)) != NULL) { pid = bsecs->pid & 0xFF; switch (pid) { case 0x11: // SDT dumpSDT(bsecs->buf, svttop); svtcur = svttop->next; while(svtcur) { if (svtcur->eit == NULL) { svtcur->eit = calloc(1, sizeof(EIT_CONTROL)); } svtcur = svtcur->next; } break; case 0x12: // EIT case 0x26: // EIT(地デジ) case 0x27: // EIT(地デジ) dumpEIT(bsecs->buf, svttop); break; } } }
void GetSDT(FILE *infile, SVT_CONTROL *svttop, SECcache *secs, int count) { SECcache *bsecs; while((bsecs = readTS(infile, secs, count)) != NULL) { /* SDT */ if((bsecs->pid & 0xFF) == 0x11) { dumpSDT(bsecs->buf, svttop); } } }