[packages/gpac] - added fix for avformat API 60
qboosh
qboosh at pld-linux.org
Fri Apr 18 22:15:02 CEST 2025
commit 1478fe8e888379fae3c5a9e10bc76ad25652ca5f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Apr 18 22:11:31 2025 +0200
- added fix for avformat API 60
gpac-ffmpeg.patch | 11 +++++++++++
gpac.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/gpac.spec b/gpac.spec
index b6b08e1..3349fed 100644
--- a/gpac.spec
+++ b/gpac.spec
@@ -26,7 +26,8 @@ Group: Applications/Multimedia
#Source0Download: https://github.com/gpac/gpac/releases
Source0: https://github.com/gpac/gpac/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: de748e69984cd8b3b695347a3c9ae4d6
-URL: http://www.gpac.io/
+Patch0: %{name}-ffmpeg.patch
+URL: https://gpac.io/
%{?with_directfb:BuildRequires: DirectFB-devel}
BuildRequires: OpenGL-GLU-devel
BuildRequires: SDL-devel
@@ -120,6 +121,7 @@ Statyczna biblioteka GPAC.
%prep
%setup -q
+%patch -P0 -p1
chmod a+x configure
diff --git a/gpac-ffmpeg.patch b/gpac-ffmpeg.patch
new file mode 100644
index 0000000..737db7e
--- /dev/null
+++ b/gpac-ffmpeg.patch
@@ -0,0 +1,11 @@
+--- gpac-2.4.0/src/filters/ff_mx.c.orig 2024-04-17 19:18:21.000000000 +0200
++++ gpac-2.4.0/src/filters/ff_mx.c 2025-04-18 22:05:55.126427348 +0200
+@@ -247,7 +247,7 @@ static GF_Err ffmx_init_mux(GF_Filter *f
+ }
+
+
+-#if (LIBAVFORMAT_VERSION_MAJOR <= 59)
++#if (LIBAVFORMAT_VERSION_MAJOR < 61)
+ static int ffavio_write_packet(void *opaque, uint8_t *buf, int buf_size)
+ #else
+ static int ffavio_write_packet(void *opaque, const uint8_t *buf, int buf_size)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gpac.git/commitdiff/1478fe8e888379fae3c5a9e10bc76ad25652ca5f
More information about the pld-cvs-commit
mailing list