This commit is contained in:
Ralph Metzler 2019-08-03 14:04:44 +02:00
parent 5ccf01a7f5
commit bf8460adfb
1 changed files with 2 additions and 1 deletions

View File

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