aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2020-10-30 17:26:32 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2020-10-30 17:27:03 +0100
commit91b8e0053802b0a1d0c5a08c4981d91fc2be9e95 (patch)
tree3b866a891c83f2d67ed010d9e96a1e957ccd7c54
parentd5b0a8e5030652244f16c2fa6bb7a53a5a76240f (diff)
downloadffmpeg-91b8e0053802b0a1d0c5a08c4981d91fc2be9e95.tar.gz
avcodec/nvenc: only enforce explicitly set twopass mode
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index b4a0a5bf0a..da8a3f5a67 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -900,7 +900,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
if (ctx->flags & NVENC_ONE_PASS)
ctx->encode_config.rcParams.multiPass = NV_ENC_MULTI_PASS_DISABLED;
- if (ctx->flags & NVENC_TWO_PASSES || ctx->twopass)
+ if (ctx->flags & NVENC_TWO_PASSES || ctx->twopass > 0)
ctx->encode_config.rcParams.multiPass = NV_ENC_TWO_PASS_FULL_RESOLUTION;
if (ctx->rc < 0) {