You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
nvenc: Update check for lookahead
By default it is -1. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
committed by
Luca Barbato
parent
a0c443a398
commit
5b26d3b789
@@ -623,7 +623,7 @@ static 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->config.frameIntervalP - 4;
|
ctx->config.frameIntervalP - 4;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user