From 2a81e2241e828151f18f8220049c5e1d19a9621e Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Sat, 3 Sep 2016 14:45:05 +0200 Subject: [PATCH] don't try to enable libmfx on non-x86 --- ffmpeg.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffmpeg.spec b/ffmpeg.spec index ea034cb..4a92ae5 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -178,7 +178,6 @@ This package contains development files for %{name} %{?_with_gme:--enable-libgme} \\\ --enable-libgsm \\\ %{?_with_ilbc:--enable-libilbc} \\\ - %{!?_without_qsv:--enable-libmfx} \\\ --enable-libmp3lame \\\ %{?_with_netcdf:--enable-netcdf} \\\ %{!?_without_nvenc:--enable-nvenc --extra-cflags="-I%{_includedir}/nvenc"} \\\ @@ -245,6 +244,9 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/ %ifarch %{ix86} --cpu=%{_target_cpu} \ %endif +%ifarch %{ix86} x86_64 + %{!?_without_qsv:--enable-libmfx} \\\ +%endif %ifarch %{ix86} x86_64 ppc ppc64 --enable-runtime-cpudetect \ %endif