Mercurial > pt1.oyama
comparison recpt1/tssplitter_lite.c @ 112:38091ff0c8ed
add a workaround for stucking on AnalyzePmt().
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 19 Mar 2010 00:57:25 +0900 |
parents | 1ccbe20c4ce5 |
children | ac39bb18136e |
comparison
equal
deleted
inserted
replaced
111:c8cfd684fee8 | 112:38091ff0c8ed |
---|---|
587 unsigned char N; | 587 unsigned char N; |
588 int pcr; | 588 int pcr; |
589 int epid; | 589 int epid; |
590 | 590 |
591 Nall = ((buf[6] & 0x0F) << 4) + buf[7]; | 591 Nall = ((buf[6] & 0x0F) << 4) + buf[7]; |
592 if(Nall > LENGTH_PACKET) | |
593 Nall = LENGTH_PACKET - 8; /* xxx workaround --yaz */ | |
592 | 594 |
593 // PCR | 595 // PCR |
594 pcr = GetPid(&buf[13]); | 596 pcr = GetPid(&buf[13]); |
595 sp->pids[pcr] = 1; | 597 sp->pids[pcr] = 1; |
596 | 598 |