[FFmpeg-devel] videotoolbox increases min target to macOS 12
Helmut K. C. Tessarek
tessarek at evermeet.cx
Tue Jul 9 08:47:16 EEST 2024
I'm very sorry to bother the dev list with this, but this is the 2nd
time in less than a year that the min version of macOS was changed in
videotoolbox.
2023-09-22: macOS 10.13
now: macOS 12
Will ffmpeg soon only compile on the current release of macOS (with
videtoolbox support)? While I understand that too old OS versions are
not necessarily the best idea, a lot of people still use older versions.
Especially when it comes to Intel based static binaries.
I just want to ask what the devs think of this situation.
I'm not saying that this has to be fixed. (I just removed the
videotoolbox support from my binaries.)
I'd asked in a forum, but there is none, nor is there another way to ask
the devs a question. And it is a question to the devs:
Is it feasible that this code raises the minimum depolyment target that
often, while the rest of ffmpeg just works perfectly fine with lower
deployment targets?
Cheers,
K. C.
Here is the error message when compiling ffmpeg for reference:
libavutil/hwcontext_videotoolbox.c:592:39: error:
'CVBufferCopyAttachments' is only available on macOS 12.0 or newer
[-Werror,-Wunguarded-availability-new]
CFDictionaryRef attachments = CVBufferCopyAttachments(pixbuf,
kCVAttachmentMode_ShouldPropagate);
^~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h:160:59:
note: 'CVBufferCopyAttachments' has been marked as being introduced in
macOS 12.0 here, but the deployment target is macOS 10.13.0
CV_EXPORT CFDictionaryRef CF_RETURNS_RETAINED CV_NULLABLE
CVBufferCopyAttachments( CVBufferRef CV_NONNULL buffer, CVAttachmentMode
attachmentMode ) API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0),
watchos(8.0));
^
libavutil/hwcontext_videotoolbox.c:592:39: note: enclose
'CVBufferCopyAttachments' in a __builtin_available check to silence this
warning
CFDictionaryRef attachments = CVBufferCopyAttachments(pixbuf,
kCVAttachmentMode_ShouldPropagate);
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
--
regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240709/4f3f5566/attachment.sig>
More information about the ffmpeg-devel
mailing list