Skip to content

Commit d5fe5f4

Browse files
committed
Apply x86 noasm detection fix on newer versions of x265
1 parent f876bdb commit d5fe5f4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cross_compile_ffmpeg.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,12 @@ build_libx265() {
18741874

18751875
local cmake_params="-DENABLE_SHARED=0" # build x265.exe
18761876

1877-
git apply "$patch_dir/x265_noasm.patch"
1877+
# Apply x86 noasm detection fix on newer versions
1878+
if [[ $x265_git_checkout_version == *"3.5"* ]] || [[ $x265_git_checkout_version == *"3.4"* ]] || [[ $x265_git_checkout_version == *"3.3"* ]] || [[ $x265_git_checkout_version == *"3.2"* ]] || [[ $x265_git_checkout_version == *"3.1"* ]]; then
1879+
:
1880+
else
1881+
git apply "$patch_dir/x265_x86_noasm_fix.patch"
1882+
fi
18781883

18791884
if [ "$bits_target" = "32" ]; then
18801885
cmake_params+=" -DWINXP_SUPPORT=1" # enable windows xp/vista compatibility in x86 build, since it still can I think...

0 commit comments

Comments
 (0)