Skip to content

Commit a879796

Browse files
committed
build-ffmpeg.py: disable cuda, amf for riscv64
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent e9a63c1 commit a879796

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/build-ffmpeg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,12 @@ def main():
280280

281281
machine = platform.machine().lower()
282282
is_arm = machine in {"arm64", "aarch64"}
283+
is_riscv = machine in {"riscv64"}
283284

284285
use_alsa = plat == "Linux"
285286
# CUDA, AMF, and Intel VPL are not available on ARM64 Windows
286-
use_cuda = plat in {"Linux", "Windows"} and not is_arm
287-
use_amf = plat in {"Linux", "Windows"} and not is_arm
287+
use_cuda = plat in {"Linux", "Windows"} and not is_arm and not is_riscv
288+
use_amf = plat in {"Linux", "Windows"} and not is_arm and not is_riscv
288289

289290
# Use Intel VPL (Video Processing Library) if supported to enable Intel QSV (Quick Sync Video)
290291
# hardware encoders/decoders on modern integrated and discrete Intel GPUs.

0 commit comments

Comments
 (0)