diff 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
line wrap: on
line diff
--- a/recpt1/tssplitter_lite.c	Sat Feb 27 04:10:16 2010 +0900
+++ b/recpt1/tssplitter_lite.c	Sat Feb 27 04:48:25 2010 +0900
@@ -605,12 +605,10 @@
 
 		tag = buf[p];
 		len = buf[p+1];
-
-		if(len == 0)
-			break;
+		p += 2;
 
 		if(tag == 0x09 && len >= 4 && p+len <= N) {
-			ca_pid = ((buf[p+4] << 8) | buf[p+5]) & 0x1fff;
+			ca_pid = ((buf[p+2] << 8) | buf[p+3]) & 0x1fff;
 			sp->pids[ca_pid] = 1;
 		}
 		p += len;