[FFmpeg-devel] [PATCH v2 4/6] avcodec/libsvtav1: Fix CQP mode doesn't work as expection

lance.lmwang at gmail.com lance.lmwang at gmail.com
Sat Sep 18 04:26:43 EEST 2021


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavcodec/libsvtav1.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 0dc25ca..b029e01 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -208,6 +208,8 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param,
     if (param->rate_control_mode) {
         param->max_qp_allowed       = avctx->qmax;
         param->min_qp_allowed       = avctx->qmin;
+    } else {
+        param->enable_tpl_la = 0; /* CQP need turn off enable_tp_la */
     }
 
     /* 2 = IDR, closed GOP, 1 = CRA, open GOP */
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list