1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

videotoolboxenc: Add an iOS version condition for VTCopySupportedPropertyDictionaryForEncoder

This fixes building for iOS versions older than 11.0.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö
2025-03-25 21:54:56 +02:00
parent 19a4719f3b
commit d7d6e9ae69

View File

@ -1219,7 +1219,7 @@ static int vtenc_create_encoder(AVCodecContext *avctx,
} }
#if defined (MAC_OS_X_VERSION_10_13) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13) #if defined (MAC_OS_X_VERSION_10_13) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13)
if (__builtin_available(macOS 10.13, *)) { if (__builtin_available(macOS 10.13, iOS 11.0, *)) {
if (vtctx->supported_props) { if (vtctx->supported_props) {
CFRelease(vtctx->supported_props); CFRelease(vtctx->supported_props);
vtctx->supported_props = NULL; vtctx->supported_props = NULL;