mirror of https://git.ffmpeg.org/ffmpeg.git
NVENC: Update check for Lookahead
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
c3d822855c
commit
67db4ff3b6
|
@ -695,7 +695,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
|
||||||
av_log(avctx, AV_LOG_VERBOSE, "Temporal AQ enabled.\n");
|
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) -
|
int lkd_bound = FFMIN(ctx->nb_surfaces, ctx->async_depth) -
|
||||||
ctx->encode_config.frameIntervalP - 4;
|
ctx->encode_config.frameIntervalP - 4;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue