aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2025-03-25 21:54:56 +0200
committerMartin Storsjö <martin@martin.st>2025-04-01 18:28:29 +0300
commitd7d6e9ae696f07c879d3b4855fd659db3919efbf (patch)
tree214c06bbce134468869182ee07f67c54438f3285
parent19a4719f3b5a9f807902033ccee188366f66a2d2 (diff)
downloadffmpeg-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.c2
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;