<pre style='margin:0'>
David B. Evans (dbevans) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bf6e71b3725db3b8122d3f6277c8d8bfc1390e6c">https://github.com/macports/macports-ports/commit/bf6e71b3725db3b8122d3f6277c8d8bfc1390e6c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit bf6e71b3725db3b8122d3f6277c8d8bfc1390e6c
</span>Author: David B. Evans <devans@macports.org>
AuthorDate: Fri Apr 27 16:29:33 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> libextractor: patch for and rebuild with ffmpeg-4.0
</span>---
devel/libextractor/Portfile | 4 +++-
devel/libextractor/files/patch-ffmpeg-4.0.diff | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libextractor/Portfile b/devel/libextractor/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ed862e6..a37c626 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libextractor/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libextractor/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name libextractor
version 1.4
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel
license GPL-3+
maintainers {ryandesign @ryandesign} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,7 +52,8 @@ depends_lib port:bzip2 \
</span> port:zlib
patchfiles patch-configure.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-src-plugins-html_extractor.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-src-plugins-html_extractor.c.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ffmpeg-4.0.diff
</span>
configure.args --enable-ffmpeg \
--enable-glib \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libextractor/files/patch-ffmpeg-4.0.diff b/devel/libextractor/files/patch-ffmpeg-4.0.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..3f6cd6e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libextractor/files/patch-ffmpeg-4.0.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/plugins/thumbnailffmpeg_extractor.c.orig 2018-04-27 16:17:01.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/plugins/thumbnailffmpeg_extractor.c 2018-04-27 16:18:42.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -107,7 +107,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /**
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Number of bytes to feed to libav in one go, with padding (padding is zeroed).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define PADDED_BUFFER_SIZE (BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define PADDED_BUFFER_SIZE (BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /**
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Global handle to MAGIC data.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -355,7 +355,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ encoder_codec_ctx->mb_lmin = encoder_codec_ctx->qmin * FF_QP2LAMBDA;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ encoder_codec_ctx->mb_lmax = encoder_codec_ctx->qmax * FF_QP2LAMBDA;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- encoder_codec_ctx->flags = CODEC_FLAG_QSCALE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ encoder_codec_ctx->flags = AV_CODEC_FLAG_QSCALE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ encoder_codec_ctx->global_quality = encoder_codec_ctx->qmin * FF_QP2LAMBDA;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dst_frame->pts = 1;
</span></pre><pre style='margin:0'>
</pre>