0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-10-03 03:19:40 +00:00
Files
termux-packages/x11-packages/audacity/ffmpeg-configure.patch
Robert Kirkman c7585599a9 bump({main/ffmpeg,x11/ffplay}): 7.1.1
- The SOVERSION guard did not fail, so I believe that means recompiling reverse dependencies is not required (except for mpv)

- All of the Debian patches have been upstreamed and are present as commits in the release except for the 15th one, which we do not really need but it was there as a result of `sync-debian-patches.sh`. I guess that `sync-debian-patches.sh` will become useful again when Debian begins making more patches and putting them into their Salsa (Debian GitLab) repository.

- `audacity-ffmpeg` also bumped

- revbump `mpv` and `mpv-x`: https://github.com/termux/termux-packages/pull/23628#issuecomment-2704881480
2025-03-08 10:19:42 -06:00

52 lines
1.9 KiB
Diff

+++ ./ffmpeg-7.1.1/configure
@@ -5336,13 +5336,9 @@
striptype=""
;;
android)
- disable symver
enable section_data_rel_ro
add_cflags -fPIE
add_ldexeflags -fPIE -pie
- SLIB_INSTALL_NAME='$(SLIBNAME)'
- SLIB_INSTALL_LINKS=
- SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)'
;;
haiku)
prefix_default="/boot/common"
+++ ./ffmpeg-7.1.1/libavcodec/allcodecs.c
@@ -154,7 +154,6 @@
extern const FFCodec ff_h264_crystalhd_decoder;
extern const FFCodec ff_h264_v4l2m2m_decoder;
extern const FFCodec ff_h264_mediacodec_decoder;
-extern const FFCodec ff_h264_mediacodec_encoder;
extern const FFCodec ff_h264_mmal_decoder;
extern const FFCodec ff_h264_qsv_decoder;
extern const FFCodec ff_h264_rkmpp_decoder;
@@ -850,6 +849,7 @@
extern const FFCodec ff_libopenh264_decoder;
extern const FFCodec ff_h264_amf_encoder;
extern const FFCodec ff_h264_cuvid_decoder;
+extern const FFCodec ff_h264_mediacodec_encoder;
extern const FFCodec ff_h264_mf_encoder;
extern const FFCodec ff_h264_nvenc_encoder;
extern const FFCodec ff_h264_omx_encoder;
+++ ./ffmpeg-7.1.1/libavutil/file_open.c
@@ -113,7 +113,7 @@
FileLogContext file_log_ctx = { &file_log_ctx_class, log_offset, log_ctx };
int fd = -1;
#if HAVE_MKSTEMP
- size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */
+ size_t len = strlen(prefix) + strlen("@TERMUX_PREFIX@/tmp/") + 7; /* room for "@TERMUX_PREFIX@/tmp/" and "XXXXXX\0" */
*filename = av_malloc(len);
#elif HAVE_TEMPNAM
void *ptr= tempnam(NULL, prefix);
@@ -139,7 +139,7 @@
# endif
fd = open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0600);
#else
- snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
+ snprintf(*filename, len, "@TERMUX_PREFIX@/tmp/%sXXXXXX", prefix);
fd = mkstemp(*filename);
#if defined(_WIN32) || defined (__ANDROID__) || defined(__DJGPP__)
if (fd < 0) {