]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
configure: add --enable-vdpau for ffmpeg static build
authorJaroslav Kysela <perex@perex.cz>
Wed, 30 Sep 2015 06:56:09 +0000 (08:56 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 1 Oct 2015 13:26:05 +0000 (15:26 +0200)
Makefile.ffmpeg
configure

index eaf7b708505f95c389ad501f91457eeb305f3828..f5f57510986b3004793fe4ddce5e3ba9a2e5ceba 100644 (file)
@@ -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)
 #
index 5bd995722083ee3a10743234c964fa44f3136bd8..5a017451397839e29805cf14f5810967c94b44c6 100755 (executable)
--- 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"