Add x264 and x265 to ffmpeg

Add x264 and x265 to ffmpeg
This commit is contained in:
Andy Vandijck 2025-05-28 13:17:49 +02:00
parent c048f0c713
commit 830c8ccd4d
1 changed files with 3 additions and 1 deletions

View File

@ -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})