|
@@ -146,6 +146,27 @@ void ts_section_header_dump(struct ts_section_header *t) {
|
146
|
146
|
|
147
|
147
|
void ts_section_dump(struct ts_section_header *sec) {
|
148
|
148
|
int i;
|
|
149
|
+
|
|
150
|
+ ts_LOGf("%s table\n",
|
|
151
|
+ sec->table_id == 0x00 ? "PAT" :
|
|
152
|
+ sec->table_id == 0x01 ? "CAT" :
|
|
153
|
+ sec->table_id == 0x02 ? "PMT" :
|
|
154
|
+ sec->table_id == 0x03 ? "TSDT" :
|
|
155
|
+ IN(sec->table_id, 0x40, 0x41) ? "NIT" :
|
|
156
|
+ sec->table_id == 0x42 ? "SDT" :
|
|
157
|
+ sec->table_id == 0x46 ? "SDT" :
|
|
158
|
+ sec->table_id == 0x4a ? "BAT" :
|
|
159
|
+ IN(sec->table_id, 0x4e, 0x6f) ? "EIT" :
|
|
160
|
+ sec->table_id == 0x70 ? "TDT" :
|
|
161
|
+ sec->table_id == 0x71 ? "RST" :
|
|
162
|
+ sec->table_id == 0x72 ? "STUFFING" :
|
|
163
|
+ sec->table_id == 0x73 ? "TOT" :
|
|
164
|
+ sec->table_id == 0x7e ? "DIS" :
|
|
165
|
+ sec->table_id == 0x7f ? "SIS" :
|
|
166
|
+ IN(sec->table_id, 0x80, 0xfe) ? "USER_DEFINED" :
|
|
167
|
+ sec->table_id == 0xff ? "RESERVED" : "UNKNOWN"
|
|
168
|
+ );
|
|
169
|
+
|
149
|
170
|
for (i=0;i<sec->num_packets;i++) {
|
150
|
171
|
struct ts_header tshdr;
|
151
|
172
|
ts_packet_header_parse(sec->packet_data + (i * TS_PACKET_SIZE), &tshdr);
|