diff recpt1/tssplitter_lite.h @ 127:8e0f7191b92e

Imported PID re-acquisition code by Toshiyuki Kawashima <tos@fa2.so-net.ne.jp>. The original patch can be obtained from http://www.castanet.homeip.net/~tos/wiki/index.php
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 12 Mar 2012 22:22:27 +0900
parents aeba1988234f
children 61ff9cabf962
line wrap: on
line diff
--- a/recpt1/tssplitter_lite.h	Mon Mar 05 09:46:50 2012 +0900
+++ b/recpt1/tssplitter_lite.h	Mon Mar 12 22:22:27 2012 +0900
@@ -35,6 +35,13 @@
 #define TSS_NULL			(-2)
 #define LENGTH_PAT_HEADER	(12)
 #define C_CHAR_COMMA		','
+#define SECTION_CONTINUE	(1)
+
+typedef struct pmt_version {
+  int pid;
+  int version;
+  int packet;
+} pmt_version;
 
 /**
  * splitter構造体
@@ -48,7 +55,10 @@
 	int pmt_retain;
 	int pmt_counter;
 	int avail_pmts[MAX_SERVICES];
+	pmt_version pmt_version[MAX_SERVICES];
 	int num_pmts;
+	uint16_t section_remain[MAX_PID];	// セクション残りバイト数
+	uint8_t packet_seq[MAX_PID];	// 巡回カウンタ
 } splitter;
 
 /* b25 decoder would hoard up large chank */