summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 16:55:24 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 16:55:24 +0200
commiteae4eba9cbe1b5ffc97b92e671bd7cd024839322 (patch)
tree138705953ed8e46b0987181520ef56947b9c8cb7 /libavcodec/nvenc.c
parent1330a0f31f373f3b9f1ea53d48b94edc47759b76 (diff)
avcodec/nvenc: twopass mode works in all modes
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 14ed0d22e6..f440f5a41f 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -598,15 +598,9 @@ static void nvenc_override_rate_control(AVCodecContext *avctx)
set_vbr(avctx);
break;
case NV_ENC_PARAMS_RC_CBR:
- break;
case NV_ENC_PARAMS_RC_2_PASS_QUALITY:
case NV_ENC_PARAMS_RC_2_PASS_FRAMESIZE_CAP:
- if (!(ctx->flags & NVENC_LOWLATENCY)) {
- av_log(avctx, AV_LOG_WARNING,
- "The multipass rate-control requires "
- "a low-latency preset.\n");
- return;
- }
+ break;
}
rc->rateControlMode = ctx->rc;