]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11425 force g-profile = 0 to vp9
authorSeven Du <seven@signalwire.com>
Fri, 1 Feb 2019 02:10:58 +0000 (10:10 +0800)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 21:51:21 +0000 (01:51 +0400)
otherwise it complains: [8:Invalid parameter:Profile > 1 not supported in this build configuration]

conf/vanilla/autoload_configs/vpx.conf.xml
src/switch_vpx.c

index 737733eec1974a0f958dc3c49375ebdaec6b9c35..ee7549025da72219e283839a871be6778b36ec4e 100644 (file)
@@ -97,7 +97,7 @@
       <!-- <param name="dec-threads" value="cpu/2/4"/> -->
       <!-- <param name="enc-threads" value="1"/> -->
 
-      <!-- <param name="g-profile" value="0"/> -->
+      <param name="g-profile" value="0"/>
       <!-- DEFAULT | PARTITIONS -->
       <!-- <param name="g-error-resilient" value="PARTITIONS"/> -->
       <!-- ONE_PASS, FIRST_PASS, LAST_PASS"/> -->
index 5191027638a4895be60fc47656cd552383e13382..ca8635d67e21ac6659a4f657529259909c26b534 100644 (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);
        }