Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
configure: add --enable-vdpau for ffmpeg static build
  • Loading branch information
perexg committed Oct 1, 2015
1 parent 7591ad3 commit 70b6aab
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile.ffmpeg
Expand Up @@ -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)
#
Expand Down
10 changes: 10 additions & 0 deletions configure
Expand Up @@ -38,6 +38,7 @@ OPTIONS=(
"libx264_static:yes"
"libx265:no"
"libx265_static:yes"
"vdpau:auto"
"libmfx:no"
"libmfx_static:yes"
"inotify:auto"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 70b6aab

Please sign in to comment.