Commit 5b26d3b7 authored by Ruta Gadkari's avatar Ruta Gadkari Committed by Luca Barbato

nvenc: Update check for lookahead

By default it is -1.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent a0c443a3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment