summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ffmpeg')
-rw-r--r--contrib/ffmpeg/module.defs7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs
index 1225fd916..6ad601fdf 100644
--- a/contrib/ffmpeg/module.defs
+++ b/contrib/ffmpeg/module.defs
@@ -35,7 +35,6 @@ FFMPEG.CONFIGURE.extra = \
--disable-muxers \
--disable-network \
--disable-hwaccels \
- --disable-vaapi \
--disable-vdpau \
--disable-encoders \
--enable-libmp3lame \
@@ -59,6 +58,12 @@ FFMPEG.CONFIGURE.extra = \
--cc="$(FFMPEG.GCC.gcc)" \
--extra-ldflags="$(call fn.ARGS,FFMPEG.GCC,*archs *sysroot *minver ?extra) -L$(call fn.ABSOLUTE,$(CONTRIB.build/)lib)"
+ifeq (1-linux,$(FEATURE.qsv)-$(BUILD.system))
+FFMPEG.CONFIGURE.extra += --enable-vaapi
+else
+FFMPEG.CONFIGURE.extra += --disable-vaapi
+endif
+
ifeq (1,$(FEATURE.fdk_aac))
FFMPEG.CONFIGURE.extra += \
--enable-nonfree \