Commit 67db4ff3 authored by Ruta Gadkari's avatar Ruta Gadkari Committed by James Almer

NVENC: Update check for Lookahead

Reviewed-by: 's avatarTimo Rothenpieler <timo@rothenpieler.org>
parent c3d82285
......@@ -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;
......
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