This fixes building for iOS versions older than 11.0.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -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; |