mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-28 02:02:46 +00:00
avcodec/nvenc: explicitly disable lookahead if lacking sufficient surfaces
It could already be enabled by the preset, so it needs explicitly disabled in this case.
This commit is contained in:
parent
520111c610
commit
ac0f42d893
@ -1076,6 +1076,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
|
|||||||
ctx->encode_config.frameIntervalP - 4;
|
ctx->encode_config.frameIntervalP - 4;
|
||||||
|
|
||||||
if (lkd_bound < 0) {
|
if (lkd_bound < 0) {
|
||||||
|
ctx->encode_config.rcParams.enableLookahead = 0;
|
||||||
av_log(avctx, AV_LOG_WARNING,
|
av_log(avctx, AV_LOG_WARNING,
|
||||||
"Lookahead not enabled. Increase buffer delay (-delay).\n");
|
"Lookahead not enabled. Increase buffer delay (-delay).\n");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user