summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-07-22 22:15:21 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-07-22 23:49:16 +0200
commit5db3ebf975df589d6d2414317c52964c9dec5612 (patch)
treed9fab15df24fd275039b1b1ce9643d08a29d4dfd /media-libs/mlt
parentmedia-libs/mlt: Fix png 8-bit segfault (diff)
downloadgentoo-5db3ebf975df589d6d2414317c52964c9dec5612.tar.gz
gentoo-5db3ebf975df589d6d2414317c52964c9dec5612.tar.bz2
gentoo-5db3ebf975df589d6d2414317c52964c9dec5612.zip
media-libs/mlt: Fix gif encoding with >=ffmpeg-3.2
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'media-libs/mlt')
-rw-r--r--media-libs/mlt/files/mlt-6.6.0-gif-encoding.patch33
-rw-r--r--media-libs/mlt/mlt-6.6.0-r1.ebuild1
2 files changed, 34 insertions, 0 deletions
diff --git a/media-libs/mlt/files/mlt-6.6.0-gif-encoding.patch b/media-libs/mlt/files/mlt-6.6.0-gif-encoding.patch
new file mode 100644
index 00000000000..4faecdc7879
--- /dev/null
+++ b/media-libs/mlt/files/mlt-6.6.0-gif-encoding.patch
@@ -0,0 +1,33 @@
+From c7c2f271170892094a0cccdb517ca1b6061208d7 Mon Sep 17 00:00:00 2001
+From: Dan Dennedy <dan@dennedy.org>
+Date: Mon, 12 Mar 2018 15:20:29 -0700
+Subject: [PATCH] Fix #284 GIF encoding not working.
+
+This also fixes DPX.
+---
+ presets/consumer/avformat/GIF | 1 -
+ src/modules/avformat/consumer_avformat.c | 2 +-
+ 2 files changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/presets/consumer/avformat/GIF b/presets/consumer/avformat/GIF
+index f6a0cd41a..da7361851 100644
+--- a/presets/consumer/avformat/GIF
++++ b/presets/consumer/avformat/GIF
+@@ -7,4 +7,3 @@ bf=0
+
+ meta.preset.extension=gif
+ meta.preset.name=GIF Animation
+-meta.preset.hidden=1
+diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c
+index caac488e2..c3724d131 100644
+--- a/src/modules/avformat/consumer_avformat.c
++++ b/src/modules/avformat/consumer_avformat.c
+@@ -71,7 +71,7 @@
+ #define AUDIO_ENCODE_BUFFER_SIZE (48000 * 2 * MAX_AUDIO_STREAMS)
+ #define AUDIO_BUFFER_SIZE (1024 * 42)
+ #define VIDEO_BUFFER_SIZE (8192 * 8192)
+-#define IMAGE_ALIGN (1)
++#define IMAGE_ALIGN (4)
+
+ //
+ // This structure should be extended and made globally available in mlt
diff --git a/media-libs/mlt/mlt-6.6.0-r1.ebuild b/media-libs/mlt/mlt-6.6.0-r1.ebuild
index b0b811b945d..c5eed698d08 100644
--- a/media-libs/mlt/mlt-6.6.0-r1.ebuild
+++ b/media-libs/mlt/mlt-6.6.0-r1.ebuild
@@ -99,6 +99,7 @@ PATCHES=(
"${FILESDIR}"/${P}-vorbis-ffmpeg-3.4.patch
"${FILESDIR}"/${P}-libav-{1,2,3}.patch
"${FILESDIR}"/${P}-png-segfault.patch
+ "${FILESDIR}"/${P}-gif-encoding.patch
)
pkg_setup() {