package/ffmpeg: add optional support for libvdpau

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls 2016-07-07 22:49:14 +02:00 committed by Thomas Petazzoni
parent bef0daec73
commit c26132c95f

View File

@ -36,7 +36,6 @@ FFMPEG_CONF_OPTS = \
--enable-mdct \ --enable-mdct \
--enable-rdft \ --enable-rdft \
--disable-crystalhd \ --disable-crystalhd \
--disable-vdpau \
--disable-dxva2 \ --disable-dxva2 \
--enable-runtime-cpudetect \ --enable-runtime-cpudetect \
--disable-hardcoded-tables \ --disable-hardcoded-tables \
@ -247,6 +246,13 @@ else
FFMPEG_CONF_OPTS += --disable-vaapi FFMPEG_CONF_OPTS += --disable-vaapi
endif 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) ifeq ($(BR2_PACKAGE_OPUS),y)
FFMPEG_CONF_OPTS += --enable-libopus FFMPEG_CONF_OPTS += --enable-libopus
FFMPEG_DEPENDENCIES += opus FFMPEG_DEPENDENCIES += opus