mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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");
|
||||
}
|
||||
|
||||
if (ctx->rc_lookahead) {
|
||||
if (ctx->rc_lookahead > 0) {
|
||||
int lkd_bound = FFMIN(ctx->nb_surfaces, ctx->async_depth) -
|
||||
ctx->encode_config.frameIntervalP - 4;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user