diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2022-12-05 21:18:42 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2022-12-05 21:21:41 +0100 |
commit | 45216e33e295f27b52bb0e829284f682ba48b7c8 (patch) | |
tree | 67f934170c9d7903a8d6035206726dfb340879e6 | |
parent | ac0f42d8939351747fcb6938d4bdebc970b8ee0e (diff) |
avcodec/nvenc: notify users about rc_lookahead clipping
-rw-r--r-- | libavcodec/nvenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 30c10f394a..8a776e5737 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -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); } } |