changeset 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 c8cfd684fee8
children e7b786c42ca0
files recpt1/tssplitter_lite.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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]);