From 73ce21d1f16ec212f91c9fcabba8d00aee2197a7 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Mon, 8 Jul 2024 14:30:38 +0800 Subject: [PATCH] avutil/hwcontext_videotoolbox: Fix version check Signed-off-by: Zhao Zhili Signed-off-by: Paul B Mahol --- libavutil/hwcontext_videotoolbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c index 953155ce32..dd89edfa08 100644 --- a/libavutil/hwcontext_videotoolbox.c +++ b/libavutil/hwcontext_videotoolbox.c @@ -588,7 +588,7 @@ static int vt_pixbuf_set_colorspace(void *log_ctx, } else CVBufferRemoveAttachment(pixbuf, kCVImageBufferGammaLevelKey); - if (__builtin_available(macOS 10.8, iOS 10, *)) { + if (__builtin_available(macOS 12.0, iOS 15.0, *)) { CFDictionaryRef attachments = CVBufferCopyAttachments(pixbuf, kCVAttachmentMode_ShouldPropagate); if (attachments) { colorspace = CVImageBufferCreateColorSpaceFromAttachments(attachments);