From ddb0661e393afbc4f1e67b79567a12e1d401c8f5 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Fri, 1 Feb 2019 10:10:58 +0800 Subject: [PATCH] FS-11425 force g-profile = 0 to vp9 otherwise it complains: [8:Invalid parameter:Profile > 1 not supported in this build configuration] --- conf/vanilla/autoload_configs/vpx.conf.xml | 2 +- src/switch_vpx.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/vanilla/autoload_configs/vpx.conf.xml b/conf/vanilla/autoload_configs/vpx.conf.xml index 737733eec1..ee7549025d 100644 --- a/conf/vanilla/autoload_configs/vpx.conf.xml +++ b/conf/vanilla/autoload_configs/vpx.conf.xml @@ -97,7 +97,7 @@ - + diff --git a/src/switch_vpx.c b/src/switch_vpx.c index 5191027638..ca8635d67e 100644 --- a/src/switch_vpx.c +++ b/src/switch_vpx.c @@ -563,6 +563,10 @@ static switch_status_t init_encoder(switch_codec_t *codec) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "config: %s\n", my_cfg->name); + if (context->is_vp9) { + my_cfg->enc_cfg.g_profile = 0; // default build of VP9 only support 0, TODO: remove this + } + if (my_cfg->codecs) { parse_codec_specific_profile(my_cfg, codec_name); }