Skip to content

Commit

Permalink
Update psy.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Uranite committed Oct 10, 2024
1 parent 178966b commit f202706
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions patches/ffmpeg/psy.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 0f9d455660..5b751a215b 100644
index 0f9d455660..405478f67d 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -73,7 +73,8 @@ typedef struct SvtContext {
Expand All @@ -12,7 +12,15 @@ index 0f9d455660..5b751a215b 100644
int qp;
} SvtContext;

@@ -165,7 +166,7 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param,
@@ -146,6 +147,7 @@ static int alloc_buffer(EbSvtAv1EncConfiguration *config, SvtContext *svt_enc)

}

+#define MAX_QP_VALUE 63
static int config_enc_params(EbSvtAv1EncConfiguration *param,
AVCodecContext *avctx)
{
@@ -165,7 +167,7 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param,
param->look_ahead_distance = svt_enc->la_depth;
#endif

Expand All @@ -21,7 +29,7 @@ index 0f9d455660..5b751a215b 100644
param->enc_mode = svt_enc->enc_mode;

if (avctx->bit_rate) {
@@ -185,7 +186,16 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param,
@@ -185,7 +187,16 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param,
FFMAX(avctx->bit_rate, avctx->rc_max_rate);

if (svt_enc->crf > 0) {
Expand All @@ -39,7 +47,7 @@ index 0f9d455660..5b751a215b 100644
param->rate_control_mode = 0;
} else if (svt_enc->qp > 0) {
param->qp = svt_enc->qp;
@@ -588,7 +598,7 @@ static const AVOption options[] = {
@@ -588,7 +599,7 @@ static const AVOption options[] = {
{ "high", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, 0, 0, VE, "tier" },
#endif
{ "preset", "Encoding preset",
Expand All @@ -48,7 +56,7 @@ index 0f9d455660..5b751a215b 100644

FF_AV1_PROFILE_OPTS

@@ -620,8 +630,8 @@ static const AVOption options[] = {
@@ -620,8 +631,8 @@ static const AVOption options[] = {
{ LEVEL("7.3", 73) },
#undef LEVEL

Expand Down

0 comments on commit f202706

Please sign in to comment.