From: Seven Du Date: Thu, 6 Sep 2018 05:16:11 +0000 (+0800) Subject: FS-11189 do not allow user change of g_timebase X-Git-Tag: v1.8.2~1^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc02a4abfc41a9f45a68dcebcd9e83bd621fd4bb;p=thirdparty%2Ffreeswitch.git FS-11189 do not allow user change of g_timebase the timebase logic is tighed to code internal logic and cannot be changed externally --- diff --git a/conf/vanilla/autoload_configs/vpx.conf.xml b/conf/vanilla/autoload_configs/vpx.conf.xml index 111c4890f9..c64e593d9c 100644 --- a/conf/vanilla/autoload_configs/vpx.conf.xml +++ b/conf/vanilla/autoload_configs/vpx.conf.xml @@ -73,7 +73,6 @@ - diff --git a/src/switch_vpx.c b/src/switch_vpx.c index 558c0a9197..804562d189 100644 --- a/src/switch_vpx.c +++ b/src/switch_vpx.c @@ -1500,6 +1500,7 @@ static void load_config() enc_cfg->g_threads = switch_parse_cpu_string(value); } else if (!strcmp(name, "g-profile")) { enc_cfg->g_profile = UINTVAL(val); +#if 0 } else if (!strcmp(name, "g-timebase")) { int num = 0; int den = 0; @@ -1518,6 +1519,7 @@ static void load_config() enc_cfg->g_timebase.num = num; enc_cfg->g_timebase.den = den; } +#endif } else if (!strcmp(name, "g-error-resilient")) { char *s = strdup(value); vpx_codec_er_flags_t res = 0;