diff options
author | James Le Cuirot <chewi@gentoo.org> | 2018-05-14 22:48:25 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2018-05-14 22:48:25 +0100 |
commit | 3b2c32569270c1fb2062436efae206e4be737349 (patch) | |
tree | ba18bbffbfa54585ce2d9d8448c771f61edece39 /media-video | |
parent | net-libs/libtorrent-rasterbar: version bump to 1.1.7 (diff) | |
download | gentoo-3b2c32569270c1fb2062436efae206e4be737349.tar.gz gentoo-3b2c32569270c1fb2062436efae206e4be737349.tar.bz2 gentoo-3b2c32569270c1fb2062436efae206e4be737349.zip |
media-video/makemkv: Patch for compatibility with ffmpeg 4
Closes: https://bugs.gentoo.org/655488
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/makemkv/files/makemkv-ffmpeg.patch | 25 | ||||
-rw-r--r-- | media-video/makemkv/makemkv-1.12.2.ebuild | 2 |
2 files changed, 26 insertions, 1 deletions
diff --git a/media-video/makemkv/files/makemkv-ffmpeg.patch b/media-video/makemkv/files/makemkv-ffmpeg.patch new file mode 100644 index 000000000000..930c144d263d --- /dev/null +++ b/media-video/makemkv/files/makemkv-ffmpeg.patch @@ -0,0 +1,25 @@ +Taken from https://negativo17.org/repos/multimedia/epel-7/SRPMS/makemkv-1.12.2-2.el7.src.rpm
+See https://github.com/FFmpeg/FFmpeg/commit/7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615
+and https://github.com/FFmpeg/FFmpeg/commit/b79a7da36faa6bb5914b04800b548e99eb3b81ca
+diff --git a/libffabi/src/ffabi.c b/libffabi/src/ffabi.c
+index 20db4e9..f08d53c 100644
+--- a/libffabi/src/ffabi.c
++++ b/libffabi/src/ffabi.c
+@@ -517,7 +517,7 @@ FFM_AudioEncodeContext* __cdecl ffm_audio_encode_init(void* logctx,const char* n
+ info->profile : FF_PROFILE_UNKNOWN;
+
+ if ((CodecFlags&FFM_CODEC_FLAG_GLOBAL_HEADER)!=0)
+- ctx->avctx->flags |= CODEC_FLAG_GLOBAL_HEADER;
++ ctx->avctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
+
+ if (argp) {
+ for (i=0;argp[i];i+=2) {
+@@ -718,7 +718,7 @@ int __cdecl ffm_audio_encode_get_info(FFM_AudioEncodeContext* ctx,FFM_AudioEncod
+ info->delay = (int32_t)ctx->avctx->delay;
+ info->flags = 0;
+
+- if ((ctx->avctx->flags&CODEC_FLAG_GLOBAL_HEADER)!=0)
++ if ((ctx->avctx->flags&AV_CODEC_FLAG_GLOBAL_HEADER)!=0)
+ info->flags |= FFM_CODEC_FLAG_GLOBAL_HEADER;
+
+ return 0;
diff --git a/media-video/makemkv/makemkv-1.12.2.ebuild b/media-video/makemkv/makemkv-1.12.2.ebuild index bcc7cf5092ec..e5003042929a 100644 --- a/media-video/makemkv/makemkv-1.12.2.ebuild +++ b/media-video/makemkv/makemkv-1.12.2.ebuild @@ -39,7 +39,7 @@ RDEPEND="${DEPEND} CONFIG_CHECK="~CHR_DEV_SG" S="${WORKDIR}/${MY_P}" -PATCHES=( "${FILESDIR}"/${PN}-path.patch ) +PATCHES=( "${FILESDIR}"/${PN}-{path,ffmpeg}.patch ) src_configure() { # See bug #439380. |