From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B1C851382C5 for ; Sun, 13 May 2018 17:31:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF0C1E0B23; Sun, 13 May 2018 17:31:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D4AEE0B23 for ; Sun, 13 May 2018 17:31:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 76A1B335C9E for ; Sun, 13 May 2018 17:31:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F22813A for ; Sun, 13 May 2018 17:30:57 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1526232624.2ce460484a2841634b71f5df4335ba3eca4f709a.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gegl/, media-libs/gegl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-1.patch media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-2.patch media-libs/gegl/gegl-0.3.34.ebuild media-libs/gegl/gegl-0.4.0-r1.ebuild X-VCS-Directories: media-libs/gegl/ media-libs/gegl/files/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 2ce460484a2841634b71f5df4335ba3eca4f709a X-VCS-Branch: master Date: Sun, 13 May 2018 17:30:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 24ac8ed3-bc14-45c1-9591-d6e1641506d1 X-Archives-Hash: 4f724eef5d6a3983f57fe93ebeabff5e commit: 2ce460484a2841634b71f5df4335ba3eca4f709a Author: Sebastian Pipping gentoo org> AuthorDate: Sun May 13 17:28:19 2018 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sun May 13 17:30:24 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ce46048 media-libs/gegl: Support ffmpeg 4.0 Closes: https://bugs.gentoo.org/654172 Package-Manager: Portage-2.3.36, Repoman-2.3.9 .../files/gegl-0.4.0-ffmpeg-4-0-compat-1.patch | 63 ++++++++++++++++++++++ .../files/gegl-0.4.0-ffmpeg-4-0-compat-2.patch | 25 +++++++++ media-libs/gegl/gegl-0.3.34.ebuild | 2 + media-libs/gegl/gegl-0.4.0-r1.ebuild | 2 + 4 files changed, 92 insertions(+) diff --git a/media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-1.patch b/media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-1.patch new file mode 100644 index 00000000000..fc8027f08ae --- /dev/null +++ b/media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-1.patch @@ -0,0 +1,63 @@ +From 8f2545886ce3be8f1b1229bddcfa5af3216110d3 Mon Sep 17 00:00:00 2001 +From: Franz Brausse +Date: Sun, 6 May 2018 13:38:09 +0200 +Subject: operations/external/ff-save: ffmpeg-4.0 compat; fixes #795625 + +--- + operations/external/ff-save.c | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c +index 90b6162..e7edd3e 100644 +--- a/operations/external/ff-save.c ++++ b/operations/external/ff-save.c +@@ -88,6 +88,11 @@ property_int (me_subpel_quality, _("me-subpel-quality"), 0) + #include + #include + ++/* remove if libavcodec_required_version is changed to > 56.41.100 */ ++#if LIBAVCODEC_VERSION_INT <= AV_VERSION_INT(56,41,100) ++# define AV_CODEC_FLAG_GLOBAL_HEADER CODEC_FLAG_GLOBAL_HEADER ++#endif ++ + typedef struct + { + gdouble frame; +@@ -290,7 +295,7 @@ add_audio_stream (GeglProperties *o, AVFormatContext * oc, int codec_id) + 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; + } +@@ -699,7 +704,9 @@ open_video (GeglProperties *o, AVFormatContext * oc, AVStream * st) + } + + p->video_outbuf = NULL; ++#if (LIBAVFORMAT_VERSION_MAJOR < 58) /* AVFMT_RAWPICTURE got removed from ffmpeg: "not used anymore" */ + 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 +810,7 @@ write_video_frame (GeglProperties *o, + picture_ptr = p->picture; + picture_ptr->pts = p->frame_count; + ++ #if (LIBAVFORMAT_VERSION_MAJOR < 58) /* AVFMT_RAWPICTURE got removed from ffmpeg: "not used anymore" */ + if (oc->oformat->flags & AVFMT_RAWPICTURE) + { + /* raw video case. The API will change slightly in the near +@@ -821,6 +829,7 @@ write_video_frame (GeglProperties *o, + ret = av_write_frame (oc, &pkt); + } + else ++#endif + { + /* encode the image */ + AVPacket pkt2; +-- +cgit v0.12 + diff --git a/media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-2.patch b/media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-2.patch new file mode 100644 index 00000000000..260ff3b2c1a --- /dev/null +++ b/media-libs/gegl/files/gegl-0.4.0-ffmpeg-4-0-compat-2.patch @@ -0,0 +1,25 @@ +From 2896800b5e7d0c656710c70fdea57098032f3ccc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= +Date: Sun, 6 May 2018 15:09:03 +0200 +Subject: ff-save: update another occurance of CODEC_FLAG_GLOBAL_HEADER + +--- + operations/external/ff-save.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c +index 1edac31..f30bf10 100644 +--- a/operations/external/ff-save.c ++++ b/operations/external/ff-save.c +@@ -638,7 +638,7 @@ add_video_stream (GeglProperties *o, AVFormatContext * oc, int codec_id) + #endif + + if (oc->oformat->flags & AVFMT_GLOBALHEADER) +- c->flags |= CODEC_FLAG_GLOBAL_HEADER; ++ c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; + + return st; + } +-- +cgit v0.12 + diff --git a/media-libs/gegl/gegl-0.3.34.ebuild b/media-libs/gegl/gegl-0.3.34.ebuild index 075874901a6..90e2075cd1c 100644 --- a/media-libs/gegl/gegl-0.3.34.ebuild +++ b/media-libs/gegl/gegl-0.3.34.ebuild @@ -77,6 +77,8 @@ pkg_setup() { PATCHES=( "${FILESDIR}"/${PN}-0.3.12-failing-tests.patch + "${FILESDIR}"/${PN}-0.4.0-ffmpeg-4-0-compat-1.patch # bug 654172 + "${FILESDIR}"/${PN}-0.4.0-ffmpeg-4-0-compat-2.patch # bug 654172 ) src_prepare() { diff --git a/media-libs/gegl/gegl-0.4.0-r1.ebuild b/media-libs/gegl/gegl-0.4.0-r1.ebuild index 79a293b0beb..36f2afb95aa 100644 --- a/media-libs/gegl/gegl-0.4.0-r1.ebuild +++ b/media-libs/gegl/gegl-0.4.0-r1.ebuild @@ -78,6 +78,8 @@ pkg_setup() { PATCHES=( "${FILESDIR}"/${PN}-0.3.12-failing-tests.patch + "${FILESDIR}"/${P}-ffmpeg-4-0-compat-1.patch # bug 654172 + "${FILESDIR}"/${P}-ffmpeg-4-0-compat-2.patch # bug 654172 ) src_prepare() {