diff mbox series

[FFmpeg-devel,v3,2/2] avcodec/libsvtav1: properly enforce CQP mode when set in wrapper

Message ID 1632579094-3159-2-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit c5f314309067dc85c165b975f53975c38e196258
Headers show
Series [FFmpeg-devel,v3,1/2] doc/encoders: add available values for libsvtav1 options | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Limin Wang Sept. 25, 2021, 2:11 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

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>
---
 libavcodec/libsvtav1.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index a02ba6a..6196da2 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -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;