Skip to content

Commit

Permalink
media-video/ffmpeg: backport upstream patch to build with chromaprint…
Browse files Browse the repository at this point in the history
… 1.4.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
aballier committed Dec 24, 2016
1 parent d0f4c01 commit 3564e7d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media-video/ffmpeg/ffmpeg-3.2.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ RESTRICT="

S=${WORKDIR}/${P/_/-}

PATCHES=( "${FILESDIR}/chromaprint14.patch" )

MULTILIB_WRAPPED_HEADERS=(
/usr/include/libavutil/avconfig.h
)
Expand Down
24 changes: 24 additions & 0 deletions media-video/ffmpeg/files/chromaprint14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
commit 581f93f37ef2e7a00662828ed0348d1edb9041fe
Author: Georgi D. Sotirov <[email protected]>
Date: Tue Dec 6 21:07:59 2016 +0100

lavf/chromaprint: Update for version 1.4

Fixes ticket #5997.

diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c
index 8c9a6c0111..4da02bef76 100644
--- a/libavformat/chromaprint.c
+++ b/libavformat/chromaprint.c
@@ -39,7 +39,11 @@ typedef struct ChromaprintMuxContext {
int silence_threshold;
int algorithm;
FingerprintFormat fp_format;
+#if CPR_VERSION_INT >= AV_VERSION_INT(1, 4, 0)
+ ChromaprintContext *ctx;
+#else
ChromaprintContext ctx;
+#endif
} ChromaprintMuxContext;

static void cleanup(ChromaprintMuxContext *cpr)

0 comments on commit 3564e7d

Please sign in to comment.