|
@@ -35,13 +35,11 @@ static struct ts_pmt *ts_pmt_reset(struct ts_pmt *pmt) {
|
35
|
35
|
return newpmt;
|
36
|
36
|
}
|
37
|
37
|
|
38
|
|
-struct ts_pmt *ts_pmt_push_packet(struct ts_pmt *pmt, uint8_t *ts_packet, uint16_t pmt_pid) {
|
|
38
|
+struct ts_pmt *ts_pmt_push_packet(struct ts_pmt *pmt, uint8_t *ts_packet) {
|
39
|
39
|
struct ts_header ts_header;
|
40
|
40
|
memset(&ts_header, 0, sizeof(struct ts_header));
|
41
|
41
|
|
42
|
42
|
if (ts_packet_header_parse(ts_packet, &ts_header)) {
|
43
|
|
- if (ts_header.pid != pmt_pid)
|
44
|
|
- goto OUT;
|
45
|
43
|
if (!pmt->ts_header.pusi)
|
46
|
44
|
pmt->ts_header = ts_header;
|
47
|
45
|
}
|
|
@@ -196,7 +194,7 @@ struct ts_pmt *ts_pmt_copy(struct ts_pmt *pmt) {
|
196
|
194
|
struct ts_pmt *newpmt = ts_pmt_alloc();
|
197
|
195
|
int i;
|
198
|
196
|
for (i=0;i<pmt->section_header->num_packets; i++) {
|
199
|
|
- newpmt = ts_pmt_push_packet(newpmt, pmt->section_header->packet_data + (i * TS_PACKET_SIZE), pmt->ts_header.pid);
|
|
197
|
+ newpmt = ts_pmt_push_packet(newpmt, pmt->section_header->packet_data + (i * TS_PACKET_SIZE));
|
200
|
198
|
}
|
201
|
199
|
if (newpmt->initialized) {
|
202
|
200
|
return newpmt;
|