diff 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 a910b49dfbee
line wrap: on
line diff
--- a/recpt1/tssplitter_lite.c	Fri Mar 19 00:51:35 2010 +0900
+++ b/recpt1/tssplitter_lite.c	Fri Mar 19 00:57:25 2010 +0900
@@ -589,6 +589,8 @@
 	int epid;
 
 	Nall = ((buf[6] & 0x0F) << 4) + buf[7];
+	if(Nall > LENGTH_PACKET)
+		Nall = LENGTH_PACKET - 8; /* xxx workaround --yaz */
 
 	// PCR
 	pcr = GetPid(&buf[13]);