[FFmpeg-cvslog] lavc/videotoolboxenc.c: Fix preprocessor macro for OSX 10.10.5 and probably older versions

Thilo Borgmann git at videolan.org
Mon Jun 14 17:48:34 EEST 2021


ffmpeg | branch: master | Thilo Borgmann <thilo.borgmann at mail.de> | Mon Jun 14 15:53:20 2021 +0200| [115aa7cea38161765ef0602f255aa56d17c4bbee] | committer: Thilo Borgmann

lavc/videotoolboxenc.c: Fix preprocessor macro for OSX 10.10.5 and probably older versions

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=115aa7cea38161765ef0602f255aa56d17c4bbee
---

 libavcodec/videotoolboxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index f063a86e73..4eaabed5d8 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_IPHONE && TARGET_CPU_ARM64;
 }
 
 static int vtenc_create_encoder(AVCodecContext   *avctx,



More information about the ffmpeg-cvslog mailing list