forked from nihalahmed/mpv-ios-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatch.diff
52 lines (49 loc) · 2.22 KB
/
patch.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- src/mpv-0.34.1/bootstrap.py
+++ src/mpv-0.34.1/bootstrap.py
@@ -5,10 +5,10 @@
import os, sys, stat, hashlib, subprocess
from urllib.request import urlopen, URLError
-WAFRELEASE = "waf-2.0.20"
+WAFRELEASE = "waf-2.0.9"
WAFURLS = ["https://waf.io/" + WAFRELEASE,
"http://www.freehackers.org/~tnagy/release/" + WAFRELEASE]
-SHA256HASH = "bf971e98edc2414968a262c6aa6b88541a26c3cd248689c89f4c57370955ee7f"
+SHA256HASH = "2a8e0816f023995e557f79ea8940d322bec18f286917c8f9a6fa2dc3875dfa48"
if os.path.exists("waf"):
wafver = subprocess.check_output([sys.executable, './waf', '--version']).decode()
--- src/mpv-0.34.1/wscript
+++ src/mpv-0.34.1/wscript
@@ -245,6 +245,12 @@ iconv support use --disable-iconv.",
'desc': 'w32/dos paths',
'deps': 'os-win32 || os-cygwin',
'func': check_true
+ }, {
+ 'name': 'posix-spawn',
+ 'desc': 'spawnp()/kill() POSIX support',
+ 'func': check_statement(['spawn.h', 'signal.h'],
+ 'posix_spawnp(0,0,0,0,0,0); kill(0,0)'),
+ 'deps': '!mingw && !tvos',
}, {
'name': 'glob-posix',
'desc': 'glob() POSIX support',
--- src/mpv-0.34.1/wscript_build.py
+++ src/mpv-0.34.1/wscript_build.py
@@ -209,7 +209,7 @@ def build(ctx):
])
subprocess_c = ctx.pick_first_matching_dep([
- ( "osdep/subprocess-posix.c", "posix" ),
+ ( "osdep/subprocess-posix.c", "posix-spawn" ),
( "osdep/subprocess-win.c", "win32-desktop" ),
( "osdep/subprocess-dummy.c" ),
])
--- src/ffmpeg-5.0/libavfilter/metal/utils.m
+++ src/ffmpeg-5.0/libavfilter/metal/utils.m
@@ -31,7 +31,7 @@ void ff_metal_compute_encoder_dispatch(id<MTLDevice> device,
BOOL fallback = YES;
// MAC_OS_X_VERSION_10_15 is only defined on SDKs new enough to include its functionality (including iOS, tvOS, etc)
#ifdef MAC_OS_X_VERSION_10_15
- if (@available(macOS 10.15, iOS 11, tvOS 14.5, *)) {
+ if (@available(macOS 10.15, iOS 13, tvOS 14.5, *)) {
if ([device supportsFamily:MTLGPUFamilyCommon3]) {
MTLSize threadsPerGrid = MTLSizeMake(width, height, 1);
[encoder dispatchThreads:threadsPerGrid threadsPerThreadgroup:threadsPerThreadgroup];