[packages/gegl] borrow patch from FreeBSD to unbreak build with ffmpeg4
atler
atler at pld-linux.org
Fri Apr 27 00:59:59 CEST 2018
commit 15b83213a410dd5cfabff1bffc433db1be662c72
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Apr 27 00:56:51 2018 +0200
borrow patch from FreeBSD to unbreak build with ffmpeg4
AVFMT_RAWPICTURE support was dropped (deprecated since 2015) see
http://ffmpeg.org/pipermail/ffmpeg-cvslog/2017-October/110261.html
gegl-ffmpeg4.patch | 46 ++++++++++++++++++++++++++++++++++++++++++++++
gegl.spec | 10 ++++++----
2 files changed, 52 insertions(+), 4 deletions(-)
---
diff --git a/gegl.spec b/gegl.spec
index f94235b..aeb067c 100644
--- a/gegl.spec
+++ b/gegl.spec
@@ -29,9 +29,10 @@ License: LGPL v3+
Group: Libraries
Source0: https://download.gimp.org/pub/gegl/0.3/%{name}-%{version}.tar.bz2
# Source0-md5: e6758d2526c27dd3a34d3470aa844112
-Patch2: %{name}-ruby1.9.patch
-Patch3: %{name}-build.patch
-Patch5: umfpack.patch
+Patch1: %{name}-ruby1.9.patch
+Patch2: %{name}-build.patch
+Patch3: umfpack.patch
+Patch4: %{name}-ffmpeg4.patch
URL: http://www.gegl.org/
BuildRequires: OpenEXR-devel >= 1.6.1
BuildRequires: SDL-devel >= 1.2.0
@@ -165,9 +166,10 @@ API języka Vala dla biblioteki gegl.
%prep
%setup -q
+%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch5 -p1
+%patch4 -p0
%build
%{__libtoolize}
diff --git a/gegl-ffmpeg4.patch b/gegl-ffmpeg4.patch
new file mode 100644
index 0000000..79a512e
--- /dev/null
+++ b/gegl-ffmpeg4.patch
@@ -0,0 +1,46 @@
+--- operations/external/ff-save.c.orig 2017-07-01 17:19:54 UTC
++++ operations/external/ff-save.c
+@@ -290,7 +290,7 @@ add_audio_stream (GeglProperties *o, AVFormatContext *
+ c->codec_type = AVMEDIA_TYPE_AUDIO;
+
+ if (oc->oformat->flags & AVFMT_GLOBALHEADER)
+- c->flags |= CODEC_FLAG_GLOBAL_HEADER;
++ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
+
+ return st;
+ }
+@@ -631,7 +631,7 @@ add_video_stream (GeglProperties *o, AVFormatContext *
+ #endif
+
+ if (oc->oformat->flags & AVFMT_GLOBALHEADER)
+- c->flags |= CODEC_FLAG_GLOBAL_HEADER;
++ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
+
+ return st;
+ }
+@@ -699,7 +699,9 @@ open_video (GeglProperties *o, AVFormatContext * oc, A
+ }
+
+ p->video_outbuf = NULL;
++#ifdef AVFMT_RAWPICTURE
+ if (!(oc->oformat->flags & AVFMT_RAWPICTURE))
++#endif
+ {
+ /* allocate output buffer, 1 mb / frame, might fail for some codecs on UHD - but works for now */
+ p->video_outbuf_size = 1024 * 1024;
+@@ -803,6 +805,7 @@ write_video_frame (GeglProperties *o,
+ picture_ptr = p->picture;
+ picture_ptr->pts = p->frame_count;
+
++#ifdef AVFMT_RAWPICTURE
+ if (oc->oformat->flags & AVFMT_RAWPICTURE)
+ {
+ /* raw video case. The API will change slightly in the near
+@@ -821,6 +824,7 @@ write_video_frame (GeglProperties *o,
+ ret = av_write_frame (oc, &pkt);
+ }
+ else
++#endif
+ {
+ /* encode the image */
+ AVPacket pkt2;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gegl.git/commitdiff/15b83213a410dd5cfabff1bffc433db1be662c72
More information about the pld-cvs-commit
mailing list