-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffmpeg-devel: fix compilation for OS X 10.7 through 10.12
Co-authored-by: Erik Solem <[email protected]>
- Loading branch information
1 parent
43d7c15
commit 4da8f4f
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
multimedia/ffmpeg-devel/files/patch-libavdevice-avfoundation.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- libavdevice/avfoundation.m | ||
+++ libavdevice/avfoundation.m | ||
@@ -763,6 +763,11 @@ static int get_audio_config(AVFormatContext *s) | ||
return 0; | ||
} | ||
|
||
+#if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED < 110000) || \ | ||
+ ((!defined(TARGET_OS_OSX) || TARGET_OS_OSX) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101300) | ||
+typedef NSString* AVMediaType; | ||
+#endif | ||
+ | ||
static NSArray* getDevicesWithMediaType(AVMediaType mediaType) { | ||
#if ((TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000) || (TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500)) | ||
NSMutableArray *deviceTypes = nil; |