From c26132c95f4908542b6bbc8317794c8a3f2e2256 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 7 Jul 2016 22:49:14 +0200 Subject: [PATCH] package/ffmpeg: add optional support for libvdpau Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/ffmpeg/ffmpeg.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk index d5396ad821..a4e2be6ce0 100644 --- a/package/ffmpeg/ffmpeg.mk +++ b/package/ffmpeg/ffmpeg.mk @@ -36,7 +36,6 @@ FFMPEG_CONF_OPTS = \ --enable-mdct \ --enable-rdft \ --disable-crystalhd \ - --disable-vdpau \ --disable-dxva2 \ --enable-runtime-cpudetect \ --disable-hardcoded-tables \ @@ -247,6 +246,13 @@ else FFMPEG_CONF_OPTS += --disable-vaapi endif +ifeq ($(BR2_PACKAGE_LIBVDPAU),y) +FFMPEG_CONF_OPTS += --enable-vdpau +FFMPEG_DEPENDENCIES += libvdpau +else +FFMPEG_CONF_OPTS += --disable-vdpau +endif + ifeq ($(BR2_PACKAGE_OPUS),y) FFMPEG_CONF_OPTS += --enable-libopus FFMPEG_DEPENDENCIES += opus -- 2.30.2