Skip to content

Commit 95d41f7

Browse files
misl6AndreMiras
authored andcommitted
Fixes ffmpeg compilation w/ openssl 1.1.1
Fixes ffmpeg compilation with openssl 1.1.1 + added scale filter + ffpyplayer now supports python3
1 parent 6710378 commit 95d41f7

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

pythonforandroid/recipes/ffmpeg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def build_arch(self, arch):
8787

8888
# other flags:
8989
flags += [
90-
'--enable-filter=aresample,resample,crop,adelay,volume',
90+
'--enable-filter=aresample,resample,crop,adelay,volume,scale',
9191
'--enable-protocol=file,http',
9292
'--enable-small',
9393
'--enable-hwaccels',

pythonforandroid/recipes/ffmpeg/patches/configure.patch

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@@ -4841,9 +4841,6 @@
44
add_cflags -std=c11 ||
55
check_cflags -std=c99
6-
6+
77
-check_cppflags -D_FILE_OFFSET_BITS=64
88
-check_cppflags -D_LARGEFILE_SOURCE
99
-
@@ -19,3 +19,22 @@
1919
enabled libsmbclient && { use_pkg_config libsmbclient smbclient libsmbclient.h smbc_init ||
2020
require smbclient libsmbclient.h smbc_init -lsmbclient; }
2121
enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy
22+
23+
diff -Naur ffmpeg/configure ffmpeg-1/configure
24+
--- ffmpeg/configure 2019-01-11 09:30:02.824961600 +0100
25+
+++ ffmpeg-1/configure 2019-01-11 09:29:54.976149600 +0100
26+
@@ -6068,11 +6068,11 @@
27+
{ ! enabled cross_compile && add_cflags -isystem/opt/vc/include/IL && check_header OMX_Core.h ; } ||
28+
die "ERROR: OpenMAX IL headers not found"; }
29+
enabled omx && require_header OMX_Core.h
30+
-enabled openssl && { use_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
31+
+enabled openssl && { use_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
32+
use_pkg_config openssl openssl openssl/ssl.h SSL_library_init ||
33+
- check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
34+
- check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl32 -leay32 ||
35+
- check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto -lws2_32 -lgdi32 ||
36+
+ check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||
37+
+ check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
38+
+ check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
39+
die "ERROR: openssl not found"; }
40+
enabled rkmpp && { { require_pkg_config rockchip_mpp rockchip_mpp rockchip/rk_mpi.h mpp_create ||

pythonforandroid/recipes/ffpyplayer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class FFPyPlayerRecipe(CythonRecipe):
77
version = '6f7568b498715c2da88f061ebad082a042514923'
88
url = 'https://github.com/matham/ffpyplayer/archive/{version}.zip'
9-
depends = [('python2', 'python3crystax'), 'sdl2', 'ffmpeg']
9+
depends = [('python2', 'python3'), 'sdl2', 'ffmpeg']
1010
opt_depends = ['openssl', 'ffpyplayer_codecs']
1111

1212
def get_recipe_env(self, arch, with_flags_in_cc=True):

0 commit comments

Comments
 (0)