avcodec/nvenc: only auto-pick vbr rc in cq mode
ffmpeg | branch: master | Timo Rothenpieler <timo@rothenpieler.org> | Fri Oct 30 17:21:13 2020 +0100| [d5b0a8e5030652244f16c2fa6bb7a53a5a76240f] | committer: Timo Rothenpieler avcodec/nvenc: only auto-pick vbr rc in cq mode
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5b0a8e5030652244f...
libavcodec/nvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index e8b29fabee..b4a0a5bf0a 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -908,7 +908,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx) ctx->rc = NV_ENC_PARAMS_RC_CBR; } else if (ctx->cqp >= 0) { ctx->rc = NV_ENC_PARAMS_RC_CONSTQP; - } else { + } else if (ctx->quality >= 0.0f) { ctx->rc = NV_ENC_PARAMS_RC_VBR; } }
participants (1)
-
Timo Rothenpieler