Commit ed937b28 authored by François Cartegnie's avatar François Cartegnie 🤞

access: dvb: check parameters against delivery

parent 05ad0679
......@@ -182,9 +182,12 @@ static void scan_tuner_config_Init( scan_tuner_config_t *p_cfg, const scan_param
static bool scan_tuner_config_Validate( const scan_tuner_config_t *p_cfg )
{
if( p_cfg->i_frequency == 0 ||
p_cfg->i_bandwidth == 0 ||
p_cfg->i_frequency == UINT32_MAX / 10 ) /* Invalid / broken transponder info on French TNT */
return false;
if( p_cfg->type == SCAN_DVB_T && p_cfg->i_bandwidth == 0 )
return false;
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment