Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
opentv: cnum 65535 is bad - handle it as zero
  • Loading branch information
perexg committed Aug 19, 2014
1 parent d043dbe commit ae0d4dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/epggrab/module/opentv.c
Expand Up @@ -396,6 +396,7 @@ opentv_desc_channels
cid = ((int)buf[i+3] << 8) | buf[i+4];
cnum = ((int)buf[i+5] << 8) | buf[i+6];
tvhtrace(mt->mt_name, " sid %04X cid %04X cnum %d", sid, cid, cnum);
cnum = cnum < 65535 ? cnum : 0;

/* Find the service */
svc = mpegts_service_find(mm, sid, 0, 0, NULL);
Expand Down

0 comments on commit ae0d4dc

Please sign in to comment.