Option for default scaler and audio filters in INI file.

This commit is contained in:
sorgelig
2020-11-17 18:09:43 +08:00
parent 9813e14b37
commit 471372f5ce
5 changed files with 18 additions and 0 deletions

View File

@@ -319,6 +319,11 @@ static void loadScalerCfg()
if (!FileLoadConfig(scaler_cfg, &scaler_flt_cfg, sizeof(scaler_flt_cfg) - 1) || scaler_flt_cfg[0]>4)
{
memset(scaler_flt_cfg, 0, sizeof(scaler_flt_cfg));
if (cfg.vfilter_default[0])
{
strcpy(scaler_flt_cfg+1, cfg.vfilter_default);
scaler_flt_cfg[0] = 1;
}
}
}