Пример #1
0
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;
		}
	}
}
Пример #2
0
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);
		}
	}
}