Skip to content

Commit 5bb364f

Browse files
committed
update amf
1 parent 48d2b7c commit 5bb364f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build-ffmpeg

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,15 @@ if command -v nvcc > /dev/null ; then
494494
CONFIGURE_OPTIONS+=("--nvccflags=-gencode arch=compute_52,code=sm_52")
495495
fi
496496

497-
if build "amf"; then
498-
download "https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/1.4.16.1.tar.gz" "amf-1.4.16.1.tar.gz"
499-
execute mkdir -p ${WORKSPACE}/include/AMF
500-
execute cp -r amf/public/include/* ${WORKSPACE}/include/AMF/
501-
build_done "amf"
497+
if [[ "$OSTYPE" == "linux-gnu" ]]; then
498+
if build "amf"; then
499+
download "https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/1.4.16.1.tar.gz" "amf-1.4.16.1.tar.gz"
500+
execute mkdir -p ${WORKSPACE}/include/AMF
501+
execute cp -r amf/public/include/* ${WORKSPACE}/include/AMF/
502+
build_done "amf"
503+
fi
504+
CONFIGURE_OPTIONS+=("--enable-amf")
502505
fi
503-
CONFIGURE_OPTIONS+=("--enable-amf")
504-
505506

506507
##
507508
## FFmpeg

0 commit comments

Comments
 (0)