提交 ddb0661e authored 作者: Seven Du's avatar Seven Du 提交者: Andrey Volk

FS-11425 force g-profile = 0 to vp9

otherwise it complains: [8:Invalid parameter:Profile > 1 not supported in this build configuration]
上级 f3548c9f
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<!-- <param name="dec-threads" value="cpu/2/4"/> --> <!-- <param name="dec-threads" value="cpu/2/4"/> -->
<!-- <param name="enc-threads" value="1"/> --> <!-- <param name="enc-threads" value="1"/> -->
<!-- <param name="g-profile" value="0"/> --> <param name="g-profile" value="0"/>
<!-- DEFAULT | PARTITIONS --> <!-- DEFAULT | PARTITIONS -->
<!-- <param name="g-error-resilient" value="PARTITIONS"/> --> <!-- <param name="g-error-resilient" value="PARTITIONS"/> -->
<!-- ONE_PASS, FIRST_PASS, LAST_PASS"/> --> <!-- ONE_PASS, FIRST_PASS, LAST_PASS"/> -->
......
...@@ -563,6 +563,10 @@ static switch_status_t init_encoder(switch_codec_t *codec) ...@@ -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); 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) { if (my_cfg->codecs) {
parse_codec_specific_profile(my_cfg, codec_name); parse_codec_specific_profile(my_cfg, codec_name);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论