History

videotoolboxenc: Add an iOS version condition for VTCopySupportedPropertyDictionaryForEncoder

This fixes building for iOS versions older than 11.0.

Martin Storsjö committed 1 year ago

Commit d7d6e9a1 parent 19a47191 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/videotoolboxenc.c+1−1
@@ -1219,7 +1219,7 @@ static int vtenc_create_encoder(AVCodecContext *avctx, · 1218 unmodified lines
12191219 }
12201220
12211221 #if defined (MAC_OS_X_VERSION_10_13) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13)
1222− if (__builtin_available(macOS 10.13, *)) {
1222+ if (__builtin_available(macOS 10.13, iOS 11.0, *)) {
12231223 if (vtctx->supported_props) {
12241224 CFRelease(vtctx->supported_props);
12251225 vtctx->supported_props = NULL;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t