From 5058547304a553493f32924786fec9d4208df458 Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Wed, 24 Jun 2020 04:40:35 +0800 Subject: [PATCH] [ffmpeg] Add avisynthplus support (#11946) --- ports/ffmpeg/CONTROL | 8 ++++++-- ports/ffmpeg/portfile.cmake | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL index 2b85582d5..fb55a07ef 100644 --- a/ports/ffmpeg/CONTROL +++ b/ports/ffmpeg/CONTROL @@ -1,5 +1,5 @@ Source: ffmpeg -Version: 4.2-10 +Version: 4.2-11 Build-Depends: zlib Homepage: https://ffmpeg.org Description: a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. @@ -56,4 +56,8 @@ Description: Libav audio resampling library support in ffmpeg Feature: nvcodec Build-Depends: ffnvcodec, cuda -Description: Hardware accelerated codecs \ No newline at end of file +Description: Hardware accelerated codecs + +Feature: avisynthplus +Build-Depends: avisynthplus +Description: avisynthplus support in ffmpeg \ No newline at end of file diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake index dc1bff6ae..91f162365 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -141,6 +141,12 @@ else() set(OPTIONS "${OPTIONS} --disable-cuda --disable-nvenc --disable-cuvid --disable-libnpp") endif() +if("avisynthplus" IN_LIST FEATURES) + set(OPTIONS "${OPTIONS} --enable-avisynth --enable-gpl") +else() + set(OPTIONS "${OPTIONS} --disable-avisynth --disable-gpl") +endif() + set(OPTIONS_CROSS "") if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")