mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/nvenc: only enforce explicitly set twopass mode
This commit is contained in:
parent
d5b0a8e503
commit
91b8e00538
|
@ -900,7 +900,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
|
||||||
|
|
||||||
if (ctx->flags & NVENC_ONE_PASS)
|
if (ctx->flags & NVENC_ONE_PASS)
|
||||||
ctx->encode_config.rcParams.multiPass = NV_ENC_MULTI_PASS_DISABLED;
|
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;
|
ctx->encode_config.rcParams.multiPass = NV_ENC_TWO_PASS_FULL_RESOLUTION;
|
||||||
|
|
||||||
if (ctx->rc < 0) {
|
if (ctx->rc < 0) {
|
||||||
|
|
Loading…
Reference in New Issue