mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/nvenc: twopass mode works in all modes
This commit is contained in:
parent
1330a0f31f
commit
eae4eba9cb
@ -598,15 +598,9 @@ static void nvenc_override_rate_control(AVCodecContext *avctx)
|
|||||||
set_vbr(avctx);
|
set_vbr(avctx);
|
||||||
break;
|
break;
|
||||||
case NV_ENC_PARAMS_RC_CBR:
|
case NV_ENC_PARAMS_RC_CBR:
|
||||||
break;
|
|
||||||
case NV_ENC_PARAMS_RC_2_PASS_QUALITY:
|
case NV_ENC_PARAMS_RC_2_PASS_QUALITY:
|
||||||
case NV_ENC_PARAMS_RC_2_PASS_FRAMESIZE_CAP:
|
case NV_ENC_PARAMS_RC_2_PASS_FRAMESIZE_CAP:
|
||||||
if (!(ctx->flags & NVENC_LOWLATENCY)) {
|
break;
|
||||||
av_log(avctx, AV_LOG_WARNING,
|
|
||||||
"The multipass rate-control requires "
|
|
||||||
"a low-latency preset.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rc->rateControlMode = ctx->rc;
|
rc->rateControlMode = ctx->rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user