mirror of https://git.ffmpeg.org/ffmpeg.git
avutil/hwcontext_videotoolbox: Fix version check
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
9fb8d13d56
commit
85706f5136
|
@ -588,7 +588,7 @@ static int vt_pixbuf_set_colorspace(void *log_ctx,
|
||||||
} else
|
} else
|
||||||
CVBufferRemoveAttachment(pixbuf, kCVImageBufferGammaLevelKey);
|
CVBufferRemoveAttachment(pixbuf, kCVImageBufferGammaLevelKey);
|
||||||
|
|
||||||
if (__builtin_available(macOS 10.8, iOS 10, *)) {
|
if (__builtin_available(macOS 12.0, iOS 15.0, *)) {
|
||||||
CFDictionaryRef attachments = CVBufferCopyAttachments(pixbuf, kCVAttachmentMode_ShouldPropagate);
|
CFDictionaryRef attachments = CVBufferCopyAttachments(pixbuf, kCVAttachmentMode_ShouldPropagate);
|
||||||
if (attachments) {
|
if (attachments) {
|
||||||
colorspace = CVImageBufferCreateColorSpaceFromAttachments(attachments);
|
colorspace = CVImageBufferCreateColorSpaceFromAttachments(attachments);
|
||||||
|
|
Loading…
Reference in New Issue