From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 34D6F445DA for ; Mon, 19 Sep 2022 14:43:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5DAB068BC9E; Mon, 19 Sep 2022 17:43:49 +0300 (EEST) Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1450A68BC95 for ; Mon, 19 Sep 2022 17:43:43 +0300 (EEST) Received: (Authenticated sender: akimail@aki.tw) by mail.gandi.net (Postfix) with ESMTPSA id 2EDD4200003; Mon, 19 Sep 2022 14:43:40 +0000 (UTC) From: Aki Sakurai To: ffmpeg-devel@ffmpeg.org Date: Mon, 19 Sep 2022 22:43:34 +0800 Message-Id: <20220919144334.30150-1-ffmpeg@aki.tw> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avfilter/metal: fix build when minimun deployments is less than ios 13 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Aki Sakurai Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: supportsFamily is only available after ios 13. https://developer.apple.com/documentation/metal/mtldevice/3143473-supportsfamily?language=objc Signed-off-by: Aki Sakurai --- libavfilter/metal/utils.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/metal/utils.m b/libavfilter/metal/utils.m index f365d3ceea..bb1825ae35 100644 --- a/libavfilter/metal/utils.m +++ b/libavfilter/metal/utils.m @@ -31,7 +31,7 @@ void ff_metal_compute_encoder_dispatch(id device, BOOL fallback = YES; // MAC_OS_X_VERSION_10_15 is only defined on SDKs new enough to include its functionality (including iOS, tvOS, etc) #ifdef MAC_OS_X_VERSION_10_15 - if (@available(macOS 10.15, iOS 11, tvOS 14.5, *)) { + if (@available(macOS 10.15, iOS 13, tvOS 14.5, *)) { if ([device supportsFamily:MTLGPUFamilyCommon3]) { MTLSize threadsPerGrid = MTLSizeMake(width, height, 1); [encoder dispatchThreads:threadsPerGrid threadsPerThreadgroup:threadsPerThreadgroup]; -- 2.37.3 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".