patch ffmpeg for svt-av1 3.0.0

This commit is contained in:
aptalca 2025-03-10 19:20:27 -04:00
parent 98a8c9aedd
commit 23b4cea876
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548
3 changed files with 28 additions and 5 deletions

View File

@ -898,10 +898,15 @@ RUN \
curl -Lf \
https://ffmpeg.org/releases/ffmpeg-${FFMPEG}.tar.bz2 | \
tar -jx --strip-components=1 -C /tmp/ffmpeg
# Apply patch for svt-av1: https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/2249#note_2361478864
COPY /ffmpeg_n7_fix.patch /tmp/ffmpeg/
RUN \
echo "**** compiling ffmpeg ****" && \
cd /tmp/ffmpeg && \
./configure \
patch -p1 < ffmpeg_n7_fix.patch && \
./configure \
--disable-debug \
--disable-doc \
--disable-ffplay \

View File

@ -615,10 +615,15 @@ RUN \
curl -Lf \
https://ffmpeg.org/releases/ffmpeg-${FFMPEG}.tar.bz2 | \
tar -jx --strip-components=1 -C /tmp/ffmpeg
RUN \
echo "**** compiling ffmpeg ****" && \
cd /tmp/ffmpeg && \
./configure \
# Apply patch for svt-av1: https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/2249#note_2361478864
COPY /ffmpeg_n7_fix.patch /tmp/ffmpeg/
RUN \
echo "**** compiling ffmpeg ****" && \
cd /tmp/ffmpeg && \
patch -p1 < ffmpeg_n7_fix.patch && \
./configure \
--disable-debug \
--disable-doc \
--disable-ffplay \

13
ffmpeg_n7_fix.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 8fa42d590b..e99c656c5d 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -430,7 +430,7 @@ static av_cold int eb_enc_init(AVCodecContext *avctx)
svt_enc->eos_flag = EOS_NOT_REACHED;
- svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
+ svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, &svt_enc->enc_params);
if (svt_ret != EB_ErrorNone) {
return svt_print_error(avctx, svt_ret, "Error initializing encoder handle");
}