aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 16:53:38 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 16:53:38 +0200
commit1330a0f31f373f3b9f1ea53d48b94edc47759b76 (patch)
tree1db0408fd3042f429ff29cb4f25e18f79e76501e
parent58c6dcb4b7e77ca87d6b4bd869b098603b5b11f1 (diff)
downloadffmpeg-1330a0f31f373f3b9f1ea53d48b94edc47759b76.tar.gz
avcodec/nvenc: Fix forcing constqp rc mode
The CONSTQP enum value is 0, so this check failed for it.
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index e8b57e43be..14ed0d22e6 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -651,7 +651,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
if (ctx->flags & NVENC_LOSSLESS) {
set_lossless(avctx);
- } else if (ctx->rc > 0) {
+ } else if (ctx->rc >= 0) {
nvenc_override_rate_control(avctx);
} else {
ctx->encode_config.rcParams.rateControlMode = NV_ENC_PARAMS_RC_VBR;