[FFmpeg-devel] [PATCH] lavc/videotoolboxenc.c: Fix preprocessor macro for OSX, 10.10.5 and probably older versions
Thilo Borgmann
thilo.borgmann at mail.de
Mon Jun 14 16:03:32 EEST 2021
Hi,
TARGET_OS_OSX exists since OSX 10.10.6. TARGET_OS_MAC is there on both sides of
10.10.6. Fixes compilation on Yosemite.
-Thilo
-------------- next part --------------
From a6c690c8f1d311995c6511fcd22982ff1f4c5949 Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann at mail.de>
Date: Mon, 14 Jun 2021 14:51:13 +0200
Subject: [PATCH] lavc/videotoolboxenc.c: Fix preprocessor macro for OSX
10.10.5 and probably older versions
---
libavcodec/videotoolboxenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index f063a86..888b6d6c 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -1038,7 +1038,7 @@ static int get_cv_ycbcr_matrix(AVCodecContext *avctx, CFStringRef *matrix) {
// constant quality only on Macs with Apple Silicon
static bool vtenc_qscale_enabled(void)
{
- return TARGET_OS_OSX && TARGET_CPU_ARM64;
+ return TARGET_OS_MAC && TARGET_CPU_ARM64;
}
static int vtenc_create_encoder(AVCodecContext *avctx,
--
1.8.3.2
More information about the ffmpeg-devel
mailing list