mpegts_psi_table_state_t *st = NULL;
/* Start */
+ if (len < 2) return -1;
sid = extract_svcid(ptr);
r = dvb_table_begin((mpegts_psi_table_t *)mt, ptr, len,
tableid, sid, 9, &st, §, &last, &ver);
dvb_bat_id_t *bi = NULL;
/* Net/Bat ID */
+ if (len < 2) return -1;
nbid = extract_2byte(ptr);
/* Begin */
mpegts_psi_table_state_t *st = NULL;
/* Begin */
+ if (len < 8) return -1;
tsid = extract_onid(ptr);
onid = extract_tsid(ptr + 5);
extraid = ((int)onid) << 16 | tsid;
if (tableid != 0xc8 && tableid != 0xc9) return -1;
/* Extra ID */
+ if (len < 2) return -1;
tsid = extract_tsid(ptr);
extraid = tsid;
if (tableid != DVB_ATSC_STT_BASE) return -1;
/* Extra ID */
+ if (len < 2) return -1;
extraid = extract_2byte(ptr);
/* Begin */
mpegts_psi_table_state_t *st = NULL;
/* Fastscan ID */
+ if (len < 2) return -1;
nbid = extract_2byte(ptr);
/* Begin */