[FFmpeg-cvslog] avcodec/libsvtav1: properly enforce CQP mode when set in wrapper
Limin Wang
git at videolan.org
Wed Sep 29 13:13:52 EEST 2021
ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sat Sep 25 22:09:05 2021 +0800| [c5f314309067dc85c165b975f53975c38e196258] | committer: Limin Wang
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c5f314309067dc85c165b975f53975c38e196258
---
libavcodec/libsvtav1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index a02ba6a82f..6196da25e6 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;
More information about the ffmpeg-cvslog
mailing list