[packages/gpac] - fix building with ffmpeg 2

baggins baggins at pld-linux.org
Wed Aug 28 20:43:30 CEST 2013


commit a6953b4a3d6eaced5d49417e303b296edf02977c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Aug 28 20:43:19 2013 +0200

    - fix building with ffmpeg 2

 gpac-ffmpeg2.patch | 15 +++++++++++++++
 gpac.spec          |  2 ++
 2 files changed, 17 insertions(+)
---
diff --git a/gpac.spec b/gpac.spec
index 2efedb0..eb0594b 100644
--- a/gpac.spec
+++ b/gpac.spec
@@ -35,6 +35,7 @@ Patch5:		%{name}-idl_uuid.patch
 Patch6:		%{name}-js.patch
 Patch7:		%{name}-apps.patch
 Patch8:		%{name}-export.patch
+Patch9:		%{name}-ffmpeg2.patch
 URL:		http://gpac.sourceforge.net/
 %{?with_directfb:BuildRequires:	DirectFB-devel}
 BuildRequires:	OpenGL-GLU-devel
@@ -163,6 +164,7 @@ Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 sed -i -e 's/wx-config/wx-gtk2-unicode-config/' configure
 chmod a+x configure
diff --git a/gpac-ffmpeg2.patch b/gpac-ffmpeg2.patch
new file mode 100644
index 0000000..248f0f7
--- /dev/null
+++ b/gpac-ffmpeg2.patch
@@ -0,0 +1,15 @@
+Index: gpac/modules/ffmpeg_in/ffmpeg_in.h
+===================================================================
+--- gpac.orig/modules/ffmpeg_in/ffmpeg_in.h
++++ gpac/modules/ffmpeg_in/ffmpeg_in.h
+@@ -96,6 +96,10 @@ void gf_av_vlog(void* avcl, int level, c
+ #endif
+ 
+ 
++#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
++#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
++#endif
++
+ 
+ 
+ /*FFMPEG decoder module */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gpac.git/commitdiff/a6953b4a3d6eaced5d49417e303b296edf02977c



More information about the pld-cvs-commit mailing list