diff options
author | Martin Storsjö <martin@martin.st> | 2025-03-25 21:54:56 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2025-04-01 18:28:29 +0300 |
commit | d7d6e9ae696f07c879d3b4855fd659db3919efbf (patch) | |
tree | 214c06bbce134468869182ee07f67c54438f3285 | |
parent | 19a4719f3b5a9f807902033ccee188366f66a2d2 (diff) | |
download | ffmpeg-d7d6e9ae696f07c879d3b4855fd659db3919efbf.tar.gz |
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>
-rw-r--r-- | libavcodec/videotoolboxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index e7f2c7b8eb..b748ecda61 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -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 (__builtin_available(macOS 10.13, *)) { + if (__builtin_available(macOS 10.13, iOS 11.0, *)) { if (vtctx->supported_props) { CFRelease(vtctx->supported_props); vtctx->supported_props = NULL; |