diff options
author | Martin Storsjö <martin@martin.st> | 2023-12-15 12:11:12 +0200 |
---|---|---|
committer | Thilo Borgmann <thilo.borgmann@mail.de> | 2023-12-15 11:27:23 +0100 |
commit | 081d69b78df8d1f38f99faaa9b9598592c82303b (patch) | |
tree | 49abf41e4b89f208ffc839fe27a270b0532f074c /libavcodec/libopenh264.c | |
parent | ce0c178a408d43e71085c28a47d50dc939b60196 (diff) | |
download | ffmpeg-081d69b78df8d1f38f99faaa9b9598592c82303b.tar.gz |
avfoundation: Fix version checks
<OS>_VERSION_MAX_ALLOWED indicates what version is available in
the SDK, while <OS>_VERSION_MIN_REQUIRED is the version we can
assume is available, i.e. similar to what is set with e.g.
-miphoneos-version-min on the command line.
This fixes build errors like these:
src/libavdevice/avfoundation.m:788:37: error: 'AVCaptureDeviceTypeContinuityCamera' is only available on macOS 14.0 or newer [-Werror,-Wunguarded-availability-new]
[deviceTypes addObject: AVCaptureDeviceTypeContinuityCamera];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:551:38: note: 'AVCaptureDeviceTypeContinuityCamera' has been marked as being introduced in macOS 14.0 here, but the deployment target is macOS 13.0.0
AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeContinuityCamera API_AVAILABLE(macos(14.0), ios(17.0), macCatalyst(17.0), tvos(17.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos);
^
Alternatively, we could use these more modern APIs, if enclosed
in suitable @available() checks.
Diffstat (limited to 'libavcodec/libopenh264.c')
0 files changed, 0 insertions, 0 deletions