]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11466: [mod_av] Fix h264 hardware encoding delay.
authorAndrey Volk <andywolk@gmail.com>
Wed, 17 Oct 2018 17:17:03 +0000 (20:17 +0300)
committerAndrey Volk <andrey@signalwire.com>
Tue, 27 Nov 2018 22:47:23 +0000 (02:47 +0400)
src/mod/applications/mod_av/avcodec.c

index 7df1aa42e0e5bcbd8ed67ccb2d6151fc2a99543e..594999310cc2bee61cc80b15ec3876bea8489d27 100644 (file)
@@ -1089,6 +1089,8 @@ static void set_h264_private_data(h264_codec_context_t *context, avcodec_profile
        if (context->hw_encoder) {
                av_opt_set(context->encoder_ctx->priv_data, "preset", "llhp", 0);
                av_opt_set_int(context->encoder_ctx->priv_data, "2pass", 1, 0);
+               av_opt_set_int(context->encoder_ctx->priv_data, "delay", 0, 0);
+               av_opt_set(context->encoder_ctx->priv_data, "forced-idr", "true", 0);
                return;
        }