From abce9bfb144acc173a7d7d403fcecff915a6e2f1 Mon Sep 17 00:00:00 2001
From: James Almer <jamrial@gmail.com>
Date: Sun, 13 Mar 2022 15:17:40 -0300
Subject: [PATCH 08/21] avcodec/libsvtav1: fine tune qp mode settings

As requested in https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/1829

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/libsvtav1.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 00be46e22b..8c54372065 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -184,11 +184,10 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param,
     if (svt_enc->crf > 0) {
         param->qp                   = svt_enc->crf;
         param->rate_control_mode    = 0;
-        param->enable_tpl_la        = 1;
     } else if (svt_enc->qp > 0) {
         param->qp                   = svt_enc->qp;
         param->rate_control_mode    = 0;
-        param->enable_tpl_la        = 0;
+        param->enable_adaptive_quantization = 0;
     }
 
 #if SVT_AV1_CHECK_VERSION(0, 9, 1)
-- 
2.40.1

