avcodec/nvenc: only auto-pick vbr rc in cq mode

pull/356/head
Timo Rothenpieler 4 years ago
parent be4ff0f1b2
commit d5b0a8e503
  1. 2
      libavcodec/nvenc.c

@ -908,7 +908,7 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
ctx->rc = NV_ENC_PARAMS_RC_CBR;
} else if (ctx->cqp >= 0) {
ctx->rc = NV_ENC_PARAMS_RC_CONSTQP;
} else {
} else if (ctx->quality >= 0.0f) {
ctx->rc = NV_ENC_PARAMS_RC_VBR;
}
}

Loading…
Cancel
Save