From a0515ccbc327dcaeac40fd968656d39bc5689b5b Mon Sep 17 00:00:00 2001 From: Nuno Senica Date: Mon, 14 Aug 2017 14:43:10 +0000 Subject: FFMPEG: Fixes rbpi compilation --- tools/depends/target/ffmpeg/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/depends/target/ffmpeg/CMakeLists.txt b/tools/depends/target/ffmpeg/CMakeLists.txt index bedf76fa4f..f0e06bb063 100644 --- a/tools/depends/target/ffmpeg/CMakeLists.txt +++ b/tools/depends/target/ffmpeg/CMakeLists.txt @@ -35,7 +35,11 @@ if(CMAKE_BUILD_TYPE STREQUAL Release) endif() if(CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL freebsd) - list(APPEND ffmpeg_conf --enable-vdpau --enable-vaapi --enable-pic) + if(CORE_PLATFORM_NAME STREQUAL rbpi) + list(APPEND ffmpeg_conf --cpu=${CPU} --disable-vaapi --disable-vdpau) + else() + list(APPEND ffmpeg_conf --enable-vdpau --enable-vaapi --enable-pic) + endif() elseif(CORE_SYSTEM_NAME STREQUAL android) if(CPU MATCHES arm64) list(APPEND ffmpeg_conf --cpu=cortex-a53 --arch=aarch64) @@ -58,8 +62,6 @@ elseif(CORE_SYSTEM_NAME STREQUAL osx) --disable-decoder=mpeg_xvmc --disable-vda --disable-crystalhd --enable-videotoolbox --target-os=darwin --disable-securetransport) -elseif(CORE_PLATFORM_NAME STREQUAL rbpi) - list(APPEND ffmpeg_conf --cpu=${CPU} --disable-vaapi --disable-vdpau) endif() if(CPU MATCHES arm OR CORE_PLATFORM_NAME STREQUAL rbpi) -- cgit v1.2.3