ffmpeg | branch: master | Timo Rothenpieler <[email protected]> | Fri Oct 
30 17:26:32 2020 +0100| [91b8e0053802b0a1d0c5a08c4981d91fc2be9e95] | committer: 
Timo Rothenpieler

avcodec/nvenc: only enforce explicitly set twopass mode

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91b8e0053802b0a1d0c5a08c4981d91fc2be9e95
---

 libavcodec/nvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to