mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/nvenc: notify users about rc_lookahead clipping
This commit is contained in:
parent
ac0f42d893
commit
45216e33e2
|
@ -1089,6 +1089,9 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
|
|||
ctx->encode_config.rcParams.lookaheadDepth,
|
||||
ctx->encode_config.rcParams.disableIadapt ? "disabled" : "enabled",
|
||||
ctx->encode_config.rcParams.disableBadapt ? "disabled" : "enabled");
|
||||
if (ctx->encode_config.rcParams.lookaheadDepth < ctx->rc_lookahead)
|
||||
av_log(avctx, AV_LOG_WARNING, "Clipping lookahead depth to %d (from %d) due to lack of surfaces/delay",
|
||||
ctx->encode_config.rcParams.lookaheadDepth, ctx->rc_lookahead);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue