Browse Source

nvenc: Update check for lookahead

By default it is -1.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n3.4
Ruta Gadkari Luca Barbato 8 years ago
parent
commit
5b26d3b789
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/nvenc.c

+ 1
- 1
libavcodec/nvenc.c View File

@@ -623,7 +623,7 @@ static 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->config.frameIntervalP - 4;



Loading…
Cancel
Save