Skip to content

Commit f131dc0

Browse files
committed
Apply SVT-AV1 patch on FFmpeg n7 and up
1 parent 4c3fc4e commit f131dc0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cross_compile_ffmpeg.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2489,7 +2489,12 @@ build_ffmpeg() {
24892489
# newer:
24902490
git apply "$work_dir/SVT-VP9_git/ffmpeg_plugin/master-0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch"
24912491
fi
2492-
config_options+=" --enable-libsvtvp9"
2492+
config_options+=" --enable-libsvtvp9"
2493+
fi
2494+
# SVT-AV1
2495+
# Apply patch on newer versions
2496+
if [[ $ffmpeg_git_checkout_version != *"n6"* ]] && [[ $ffmpeg_git_checkout_version != *"n5"* ]] && [[ $ffmpeg_git_checkout_version != *"n4"* ]] && [[ $ffmpeg_git_checkout_version != *"n3"* ]] && [[ $ffmpeg_git_checkout_version != *"n2"* ]]; then
2497+
git apply "$work_dir/SVT-AV1_git/.gitlab/workflows/linux/ffmpeg_n7_fix.patch"
24932498
fi
24942499
config_options+=" --enable-libsvtav1"
24952500
fi # else doesn't work/matter with 32 bit

0 commit comments

Comments
 (0)