Avoid autoadding muxes with freq == 0
Patch by dmarion
This commit is contained in:
parent
e3ae278a12
commit
aac967e239
1 changed files with 6 additions and 0 deletions
|
@ -850,6 +850,9 @@ dvb_table_cable_delivery(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
|
|||
bcdtoint(ptr[0]) * 1000000 + bcdtoint(ptr[1]) * 10000 +
|
||||
bcdtoint(ptr[2]) * 100 + bcdtoint(ptr[3]);
|
||||
|
||||
if(!freq)
|
||||
return -1;
|
||||
|
||||
dmc.dmc_fe_params.frequency = freq * 100;
|
||||
|
||||
symrate =
|
||||
|
@ -895,6 +898,9 @@ dvb_table_sat_delivery(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
|
|||
bcdtoint(ptr[2]) * 100 + bcdtoint(ptr[3]);
|
||||
dmc.dmc_fe_params.frequency = freq * 10;
|
||||
|
||||
if(!freq)
|
||||
return -1;
|
||||
|
||||
symrate =
|
||||
bcdtoint(ptr[7]) * 100000 + bcdtoint(ptr[8]) * 1000 +
|
||||
bcdtoint(ptr[9]) * 10 + (ptr[10] >> 4);
|
||||
|
|
Loading…
Add table
Reference in a new issue