mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
ed89be1e02
commit
c5f3143090
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue