From 830c8ccd4dc021fa3b8e63dee0fa42c387e89847 Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Wed, 28 May 2025 13:17:49 +0200 Subject: [PATCH] Add x264 and x265 to ffmpeg Add x264 and x265 to ffmpeg --- cmake/FindFFmpeg.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/FindFFmpeg.cmake b/cmake/FindFFmpeg.cmake index 1af3655e..1c460641 100644 --- a/cmake/FindFFmpeg.cmake +++ b/cmake/FindFFmpeg.cmake @@ -33,7 +33,7 @@ include(FindPackageHandleStandardArgs) # The default components were taken from a survey over other FindFFMPEG.cmake files if (NOT FFmpeg_FIND_COMPONENTS) - set(FFmpeg_FIND_COMPONENTS AVFORMAT AVCODEC AVUTIL) + set(FFmpeg_FIND_COMPONENTS AVFORMAT AVCODEC AVUTIL X264 X265) endif () # @@ -107,6 +107,8 @@ if (NOT FFMPEG_LIBRARIES) find_component(SWSCALE libswscale swscale libswscale/swscale.h) find_component(POSTPROC libpostproc postproc libpostproc/postprocess.h) find_component(SWRESAMPLE libswresample swresample libswresample/swresample.h) + find_component(X264 libx264 x264 x264.h) + find_component(X265 libx265 x265 x265.h) # Check if the required components were found and add their stuff to the FFMPEG_* vars. foreach (_component ${FFmpeg_FIND_COMPONENTS})