for (j = 0; j < pat_table->pid_table_len; j++) {
pid_table = &pat_table->pid_table[j];
- if (service_table->service_id == pid_table->program_number)
+ if (service_table->service_id == pid_table->service_id)
break;
}
if (j == pat_table->pid_table_len) {
memset(&dvb_desc->pat_table.pid_table[n], 0,
sizeof(dvb_desc->pat_table.pid_table[n]));
- dvb_desc->pat_table.pid_table[n].program_number = service_id;
+ dvb_desc->pat_table.pid_table[n].service_id = service_id;
dvb_desc->pat_table.pid_table[n].pid = pmt_pid;
if (dvb_desc->verbose)
/* PMT tables */
for (i = 0; i < dvb_desc->pat_table.pid_table_len; i++) {
struct pid_table *pid_table = &dvb_desc->pat_table.pid_table[i];
- uint16_t pn = pid_table->program_number;
+ uint16_t pn = pid_table->service_id;
/* Skip PAT, CAT, reserved and NULL packets */
if (pn < 0x0010 || pn == 0x1fff)
continue;
};
struct pid_table {
- uint16_t program_number;
+ uint16_t service_id;
uint16_t pid;
struct pmt_table pmt_table;
unsigned video_pid_len, audio_pid_len;