1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

get section length

This commit is contained in:
Ralph Metzler 2019-08-03 14:01:17 +02:00
parent 78866a12b4
commit 5ccf01a7f5

View File

@ -240,7 +240,10 @@ static int set_pmts(struct dddvb_ca *ca, uint8_t **pmts)
if (pmts[i]) if (pmts[i])
num++; num++;
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {
section = section_codec(pmts[i], len); memcpy(sec, pmts[i], 4096);
len = ((sec[1] & 0x0f) << 8) | sec[2];
len += 3;
section = section_codec(sec, len);
section_ext = section_ext_decode(section, 0); section_ext = section_ext_decode(section, 0);
pmt = mpeg_pmt_section_codec(section_ext); pmt = mpeg_pmt_section_codec(section_ext);