package/ffmpeg: add optional support for libvdpau
authorBernd Kuhls <bernd.kuhls@t-online.de>
Thu, 7 Jul 2016 20:49:14 +0000 (22:49 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 8 Jul 2016 18:48:22 +0000 (20:48 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ffmpeg/ffmpeg.mk

index d5396ad821dcba9e9b45b1c7f280b958473117af..a4e2be6ce096ce3eda025932e8216de1cd991fa0 100644 (file)
@@ -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