[FFmpeg-cvslog] NVENC: Update check for Lookahead
Ruta Gadkari
git at videolan.org
Mon Dec 26 17:14:56 EET 2016
ffmpeg | branch: master | Ruta Gadkari <rgadkari at nvidia.com> | Mon Dec 26 13:37:16 2016 +0530| [67db4ff3b66e96a20ddf1c264d07e146334ae88e] | committer: James Almer
NVENC: Update check for Lookahead
Reviewed-by: Timo Rothenpieler <timo at rothenpieler.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=67db4ff3b66e96a20ddf1c264d07e146334ae88e
---
libavcodec/nvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 476a53e..f64fd8a 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;
More information about the ffmpeg-cvslog
mailing list