From: Jaroslav Kysela Date: Wed, 30 Sep 2015 06:56:09 +0000 (+0200) Subject: configure: add --enable-vdpau for ffmpeg static build X-Git-Tag: v4.2.1~2009 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70b6aab40c981659b3ba456406a5e54bef965b02;p=thirdparty%2Ftvheadend.git configure: add --enable-vdpau for ffmpeg static build --- diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg index eaf7b7085..f5f575109 100644 --- a/Makefile.ffmpeg +++ b/Makefile.ffmpeg @@ -125,6 +125,18 @@ $(LIBAVDIR)/$(YASM)/.tvh_build: \ $(MAKE) -C $(LIBAVDIR)/$(YASM) install @touch $@ +# +# VDPAU library +# + +ifeq (yes,$(CONFIG_VDPAU)) + +EXTRAARG += --enable-vdpau + +DECODERS += h264_vdpau + +endif + # # MFX Dispatcher (libmfx) # diff --git a/configure b/configure index 5bd995722..5a0174513 100755 --- a/configure +++ b/configure @@ -38,6 +38,7 @@ OPTIONS=( "libx264_static:yes" "libx265:no" "libx265_static:yes" + "vdpau:auto" "libmfx:no" "libmfx_static:yes" "inotify:auto" @@ -399,6 +400,15 @@ if enabled libffmpeg_static; then disable libx265_static fi + # vdpau + if enabled_or_auto vdpau; then + if check_pkg vdpau; then + enable vdpau + elif enabled vdpau; then + die "vdpau (Video API library) not found" + fi + fi + # libmfx if enabled libmfx; then check_cc_lib va || die "libva not found"