avcodec/libsvtav1: properly enforce CQP mode when set in wrapper

SVT-AV1 seems to have switched their default from CQP to CRF in February,
so enforce the controlling option accordingly.

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2021-09-25 22:09:05 +08:00
parent ed89be1e02
commit c5f3143090
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param,
param->frame_rate_denominator = avctx->time_base.num * avctx->ticks_per_frame;
}
param->enable_tpl_la = !!param->rate_control_mode;
if (param->rate_control_mode) {
param->max_qp_allowed = avctx->qmax;
param->min_qp_allowed = avctx->qmin;