FS-11425 force g-profile = 0 to vp9

otherwise it complains: [8:Invalid parameter:Profile > 1 not supported in this build configuration]
This commit is contained in:
Seven Du authored and Andrey Volk committed 2019-07-18 01:51:21 +04:00
1 parent f3548c9fa0
commit ddb0661e39
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -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);
}