10 changed files with 94 additions and 8 deletions
@ -1,3 +1,4 @@ |
|||||
|
# NOTE: Disabled due to not being ffmpeg 4 compatible. |
||||
TERMUX_PKG_HOMEPAGE=https://gstreamer.freedesktop.org/ |
TERMUX_PKG_HOMEPAGE=https://gstreamer.freedesktop.org/ |
||||
TERMUX_PKG_DESCRIPTION="GStreamer libav/ffmpeg wrapper" |
TERMUX_PKG_DESCRIPTION="GStreamer libav/ffmpeg wrapper" |
||||
TERMUX_PKG_VERSION=1.14.1 |
TERMUX_PKG_VERSION=1.14.1 |
@ -0,0 +1,36 @@ |
|||||
|
diff -u -r ../bs1770gain-0.4.12/libffsox-2/ffsox_frame.c ./libffsox-2/ffsox_frame.c
|
||||
|
--- ../bs1770gain-0.4.12/libffsox-2/ffsox_frame.c 2015-06-23 07:38:44.000000000 +0000
|
||||
|
+++ ./libffsox-2/ffsox_frame.c 2018-06-24 00:20:40.757492455 +0000
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
goto frame; |
||||
|
} |
||||
|
|
||||
|
- if (NULL!=codec&&(codec->capabilities&CODEC_CAP_VARIABLE_FRAME_SIZE))
|
||||
|
+ if (NULL!=codec&&(codec->capabilities&AV_CODEC_CAP_VARIABLE_FRAME_SIZE))
|
||||
|
nb_samples=10000; |
||||
|
else |
||||
|
nb_samples=cc->frame_size; |
||||
|
diff -u -r ../bs1770gain-0.4.12/libffsox-2/ffsox_frame_writer.c ./libffsox-2/ffsox_frame_writer.c
|
||||
|
--- ../bs1770gain-0.4.12/libffsox-2/ffsox_frame_writer.c 2015-06-23 07:38:44.000000000 +0000
|
||||
|
+++ ./libffsox-2/ffsox_frame_writer.c 2018-06-24 00:20:40.757492455 +0000
|
||||
|
@@ -66,7 +66,7 @@
|
||||
|
goto open; |
||||
|
|
||||
|
if (fw->so.fc->oformat->flags&AVFMT_GLOBALHEADER) |
||||
|
- fw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER;
|
||||
|
+ fw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER;
|
||||
|
|
||||
|
fw->so.st->time_base=fw->so.cc->time_base; |
||||
|
//fw->so.st->time_base=fr->si.st->time_base; |
||||
|
diff -u -r ../bs1770gain-0.4.12/libffsox-2/ffsox_packet_writer.c ./libffsox-2/ffsox_packet_writer.c
|
||||
|
--- ../bs1770gain-0.4.12/libffsox-2/ffsox_packet_writer.c 2015-06-23 07:38:44.000000000 +0000
|
||||
|
+++ ./libffsox-2/ffsox_packet_writer.c 2018-06-24 00:20:59.189280111 +0000
|
||||
|
@@ -65,7 +65,7 @@
|
||||
|
pw->so.cc->codec_tag=0; |
||||
|
|
||||
|
if (pw->so.fc->oformat->flags&AVFMT_GLOBALHEADER) |
||||
|
- pw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER;
|
||||
|
+ pw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER;
|
||||
|
|
||||
|
if (ffsox_sink_append(so,&pw->si,&pw->so)<0) { |
||||
|
DMESSAGE("appending output stream"); |
@ -0,0 +1,13 @@ |
|||||
|
diff -u -r ../mpv-0.28.2/video/out/gpu/context.c ./video/out/gpu/context.c
|
||||
|
--- ../mpv-0.28.2/video/out/gpu/context.c 2018-02-13 02:07:05.000000000 +0000
|
||||
|
+++ ./video/out/gpu/context.c 2018-06-24 00:34:19.827691478 +0000
|
||||
|
@@ -63,7 +63,9 @@
|
||||
|
|
||||
|
// OpenGL contexts: |
||||
|
#if HAVE_ANDROID |
||||
|
+# if HAVE_GL
|
||||
|
&ra_ctx_android, |
||||
|
+# endif
|
||||
|
#endif |
||||
|
#if HAVE_RPI |
||||
|
&ra_ctx_rpi, |
@ -0,0 +1,23 @@ |
|||||
|
diff -u -r ../mpv-0.28.2/wscript ./wscript
|
||||
|
--- ../mpv-0.28.2/wscript 2018-02-13 03:07:05.000000000 +0100
|
||||
|
+++ ./wscript 2018-06-25 14:48:26.288156610 +0200
|
||||
|
@@ -154,9 +154,7 @@
|
||||
|
'name': '--android', |
||||
|
'desc': 'Android environment', |
||||
|
'func': compose_checks( |
||||
|
- check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
|
||||
|
- check_cc(lib="android"),
|
||||
|
- check_cc(lib="EGL"),
|
||||
|
+ check_statement('android/api-level.h', '(void)__ANDROID__') # arbitrary android-specific header
|
||||
|
) |
||||
|
}, { |
||||
|
'name': 'posix-or-mingw', |
||||
|
@@ -813,7 +811,7 @@
|
||||
|
'name': 'egl-helpers', |
||||
|
'desc': 'EGL helper functions', |
||||
|
'deps': 'egl-x11 || mali-fbdev || rpi || gl-wayland || egl-drm || ' + |
||||
|
- 'egl-angle-win32 || android',
|
||||
|
+ 'egl-angle-win32',
|
||||
|
'func': check_true |
||||
|
} |
||||
|
] |
@ -0,0 +1,12 @@ |
|||||
|
diff -u -r ../mpv-0.28.2/wscript_build.py ./wscript_build.py
|
||||
|
--- ../mpv-0.28.2/wscript_build.py 2018-02-13 02:07:05.000000000 +0000
|
||||
|
+++ ./wscript_build.py 2018-06-24 00:28:49.967625363 +0000
|
||||
|
@@ -409,7 +409,7 @@
|
||||
|
( "video/out/opengl/context_drm_egl.c", "egl-drm" ), |
||||
|
( "video/out/opengl/context_dxinterop.c","gl-dxinterop" ), |
||||
|
( "video/out/opengl/context_mali_fbdev.c","mali-fbdev" ), |
||||
|
- ( "video/out/opengl/context_android.c", "android" ),
|
||||
|
+ ( "video/out/opengl/context_android.c", "android && gl" ),
|
||||
|
( "video/out/opengl/context_rpi.c", "rpi" ), |
||||
|
( "video/out/opengl/context_vdpau.c", "vdpau-gl-x11" ), |
||||
|
( "video/out/opengl/context_wayland.c", "gl-wayland" ), |
Loading…
Reference in new issue