aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRuta Gadkari <rgadkari@nvidia.com>2016-12-19 16:44:04 +0530
committerLuca Barbato <lu_zero@gentoo.org>2016-12-21 06:16:52 +0100
commit5b26d3b789bd19a32dbe1e9c7ccab9498de7ee9b (patch)
tree7548d5b0395572936b8e3d158927296d272d2129 /libavcodec
parenta0c443a3980dc22eb02b067ac4cb9ffa2f9b04d2 (diff)
downloadffmpeg-5b26d3b789bd19a32dbe1e9c7ccab9498de7ee9b.tar.gz
nvenc: Update check for lookahead
By default it is -1. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index d5bfd74e30..4054e43eec 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -623,7 +623,7 @@ static void nvenc_setup_rate_control(AVCodecContext *avctx)
av_log(avctx, AV_LOG_VERBOSE, "Temporal AQ enabled.\n");
}
- if (ctx->rc_lookahead) {
+ if (ctx->rc_lookahead > 0) {
int lkd_bound = FFMIN(ctx->nb_surfaces, ctx->async_depth) -
ctx->config.frameIntervalP - 4;