From d8ae11365c31dba406ec5a9bf6743f1a2d0747fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 25 Mar 2025 22:57:58 +0200 Subject: [PATCH] configure: Check for an actual function in VideoToolbox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes sure to disable VideoToolbox if building with an SDK that does contain VideoToolbox, but targeting an older version of the OS where it is unavailable. Previously, we would enable VideoToolbox as long as the framework itself was found, which only require the framework to exist in the SDK. Signed-off-by: Martin Storsjö --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index f2d66609fa..6942e92636 100755 --- a/configure +++ b/configure @@ -3626,7 +3626,7 @@ libxvid_encoder_deps="libxvid" libzvbi_teletext_decoder_deps="libzvbi" vapoursynth_demuxer_deps="vapoursynth" videotoolbox_suggest="coreservices" -videotoolbox_deps="corefoundation coremedia corevideo" +videotoolbox_deps="corefoundation coremedia corevideo VTDecompressionSessionDecodeFrame" videotoolbox_encoder_deps="videotoolbox VTCompressionSessionPrepareToEncodeFrames" # demuxers / muxers @@ -6687,6 +6687,7 @@ check_headers termios.h check_headers unistd.h check_headers valgrind/valgrind.h check_func_headers VideoToolbox/VTCompressionSession.h VTCompressionSessionPrepareToEncodeFrames -framework VideoToolbox +check_func_headers VideoToolbox/VideoToolbox.h VTDecompressionSessionDecodeFrame -framework VideoToolbox check_func_headers VideoToolbox/VideoToolbox.h VTPixelTransferSessionCreate -framework VideoToolbox check_func_headers VideoToolbox/VideoToolbox.h VTPixelRotationSessionCreate -framework VideoToolbox check_headers windows.h