[FFmpeg-devel] [PATCH 2/2] avutil/hwcontext_videotoolbox: fix use of unknown builtin '__builtin_available'

James Almer jamrial at gmail.com
Sun Oct 31 15:34:02 EET 2021


On 10/31/2021 10:32 AM, James Almer wrote:
> On 10/19/2021 11:52 AM, lance.lmwang at gmail.com wrote:
>> From: Limin Wang <lance.lmwang at 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.lmwang at 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.


More information about the ffmpeg-devel mailing list