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

Unified · Split

libavcodec/videotoolboxenc.c+1−1
@@ -1219,7 +1219,7 @@ static int vtenc_create_encoder(AVCodecContext *avctx, · 1218 unmodified lines
1219 }1219 }
1220 1220
1221#if defined (MAC_OS_X_VERSION_10_13) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13)1221#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, *)) {
1223 if (vtctx->supported_props) {1223 if (vtctx->supported_props) {
1224 CFRelease(vtctx->supported_props);1224 CFRelease(vtctx->supported_props);
1225 vtctx->supported_props = NULL;1225 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