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:
parent
78866a12b4
commit
5ccf01a7f5
@ -240,7 +240,10 @@ static int set_pmts(struct dddvb_ca *ca, uint8_t **pmts)
|
||||
if (pmts[i])
|
||||
num++;
|
||||
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);
|
||||
pmt = mpeg_pmt_section_codec(section_ext);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user