diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2020-10-30 17:21:13 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2020-10-30 17:27:03 +0100 |
commit | d5b0a8e5030652244f16c2fa6bb7a53a5a76240f (patch) | |
tree | f32d04902931f13f6032d4da0cbda523f86dbfbd | |
parent | be4ff0f1b2eea3d4ab330eb2632bdb1c2fd30717 (diff) | |
download | ffmpeg-d5b0a8e5030652244f16c2fa6bb7a53a5a76240f.tar.gz |
avcodec/nvenc: only auto-pick vbr rc in cq mode
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |