-
Notifications
You must be signed in to change notification settings - Fork 9
/
ts.h
46 lines (37 loc) · 850 Bytes
/
ts.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef TS_H
#define TS_H 1
#include <stdio.h>
#include <stdlib.h>
#include "util.h"
#define TSPAYLOADMAX 184
typedef struct _TSpacket {
char sync;
int transport_error_indicator;
int payload_unit_start_indicator;
int transport_priority;
int pid;
int transport_scrambling_control;
int adaptation_field_control;
int continuity_counter;
int adaptation_field;
unsigned char payload[TSPAYLOADMAX];
int payloadlen;
int rcount;
} TSpacket;
typedef struct _SECcache {
int pid;
unsigned char buf[MAXSECLEN];
int seclen;
int setlen;
TSpacket cur;
int curlen;
int cont;
} SECcache;
#ifdef __cplusplus
extern "C"{
#endif /* __cplusplus */
SECcache *readTS(FILE *in, SECcache secs[], int secscount);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif