On 10/31/2021 10:32 AM, James Almer wrote:
On 10/19/2021 11:52 AM, lance.lmw...@gmail.com wrote:
From: Limin Wang <lance.lmw...@gmail.com>

OSX version: 10.11.6
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0

Signed-off-by: Limin Wang <lance.lmw...@gmail.com>
---
  libavutil/hwcontext_videotoolbox.c | 12 ++++++++++++
  1 file changed, 12 insertions(+)

diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c
index 58095a1..5794cab 100644
--- a/libavutil/hwcontext_videotoolbox.c
+++ b/libavutil/hwcontext_videotoolbox.c
@@ -375,9 +375,11 @@ static int vt_pixbuf_set_colorspace(AVHWFramesContext *hwfc,
      switch (src->colorspace) {
      case AVCOL_SPC_BT2020_CL:
      case AVCOL_SPC_BT2020_NCL:
+#if __has_builtin(__builtin_available)

AV_HAS_BUILTIN(__builtin_available)

I know it's not necessary per se since this is an OSX only file, but it will help grepping in the future if there needs to be a change to the macro.

Oh, nevermind, i missed the v2.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to