mirror of
https://github.com/jellyfin/jellyfin-ffmpeg.git
synced 2026-09-03 05:09:58 +03:00
Backport a fix to unbreak svt-av1 v4
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
Index: FFmpeg/libavcodec/libsvtav1.c
|
||||
===================================================================
|
||||
--- FFmpeg.orig/libavcodec/libsvtav1.c
|
||||
+++ FFmpeg/libavcodec/libsvtav1.c
|
||||
@@ -238,7 +238,11 @@ static int config_enc_params(EbSvtAv1Enc
|
||||
} else if (svt_enc->qp > 0) {
|
||||
param->qp = svt_enc->qp;
|
||||
param->rate_control_mode = 0;
|
||||
+#if SVT_AV1_CHECK_VERSION(4, 0, 0)
|
||||
+ param->aq_mode = 0;
|
||||
+#else
|
||||
param->enable_adaptive_quantization = 0;
|
||||
+#endif
|
||||
}
|
||||
|
||||
desc = av_pix_fmt_desc_get(avctx->pix_fmt);
|
||||
Reference in New Issue
Block a user