NVENC: Update check for Lookahead

Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
Ruta Gadkari 2016-12-26 13:19:16 +05:30 committed by James Almer
parent c3d822855c
commit 67db4ff3b6

View File

@ -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;