comparison recpt1/tssplitter_lite.c @ 107:1ccbe20c4ce5

fix ECM more
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 27 Feb 2010 04:48:25 +0900
parents 12b9192becaa
children 38091ff0c8ed
comparison
equal deleted inserted replaced
106:12b9192becaa 107:1ccbe20c4ce5
603 uint32_t tag; 603 uint32_t tag;
604 uint32_t len; 604 uint32_t len;
605 605
606 tag = buf[p]; 606 tag = buf[p];
607 len = buf[p+1]; 607 len = buf[p+1];
608 608 p += 2;
609 if(len == 0)
610 break;
611 609
612 if(tag == 0x09 && len >= 4 && p+len <= N) { 610 if(tag == 0x09 && len >= 4 && p+len <= N) {
613 ca_pid = ((buf[p+4] << 8) | buf[p+5]) & 0x1fff; 611 ca_pid = ((buf[p+2] << 8) | buf[p+3]) & 0x1fff;
614 sp->pids[ca_pid] = 1; 612 sp->pids[ca_pid] = 1;
615 } 613 }
616 p += len; 614 p += len;
617 } 615 }
618 616