diff options
author | Ruta Gadkari <rgadkari@nvidia.com> | 2016-12-26 13:19:16 +0530 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-12-26 12:13:39 -0300 |
commit | 67db4ff3b66e96a20ddf1c264d07e146334ae88e (patch) | |
tree | 1bb25c9b8f0de19f4cba58507fe280a9ca058bef /libavcodec | |
parent | c3d822855cb5220e478d8b0ba0bafde18aa2f122 (diff) | |
download | ffmpeg-67db4ff3b66e96a20ddf1c264d07e146334ae88e.tar.gz |
NVENC: Update check for Lookahead
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 476a53e319..f64fd8a8ba 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -695,7 +695,7 @@ static av_cold 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->encode_config.frameIntervalP - 4; |