[FFmpeg-cvslog] nvenc: Update check for lookahead

Ruta Gadkari git at videolan.org
Wed May 3 13:28:31 EEST 2017


ffmpeg | branch: master | Ruta Gadkari <rgadkari at nvidia.com> | Mon Dec 19 17:02:04 2016 +0530| [5b26d3b789bd19a32dbe1e9c7ccab9498de7ee9b] | committer: Luca Barbato

nvenc: Update check for lookahead

By default it is -1.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b26d3b789bd19a32dbe1e9c7ccab9498de7ee9b
---

 libavcodec/nvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 



More information about the ffmpeg-cvslog mailing list