Skip to content

Commit 6e26bcb

Browse files
committed
Simplify if statement
1 parent d5fe5f4 commit 6e26bcb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cross_compile_ffmpeg.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,9 +1875,7 @@ build_libx265() {
18751875
local cmake_params="-DENABLE_SHARED=0" # build x265.exe
18761876

18771877
# 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
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
18811879
git apply "$patch_dir/x265_x86_noasm_fix.patch"
18821880
fi
18831881

0 commit comments

Comments
 (0)