1 |
commit: 3564e7dbe3136e473df37de148f2449301032c30 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 24 10:33:11 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 24 10:33:25 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3564e7db |
7 |
|
8 |
media-video/ffmpeg: backport upstream patch to build with chromaprint 1.4. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
media-video/ffmpeg/ffmpeg-3.2.2.ebuild | 2 ++ |
13 |
media-video/ffmpeg/files/chromaprint14.patch | 24 ++++++++++++++++++++++++ |
14 |
2 files changed, 26 insertions(+) |
15 |
|
16 |
diff --git a/media-video/ffmpeg/ffmpeg-3.2.2.ebuild b/media-video/ffmpeg/ffmpeg-3.2.2.ebuild |
17 |
index 38429b2..9b30ce4 100644 |
18 |
--- a/media-video/ffmpeg/ffmpeg-3.2.2.ebuild |
19 |
+++ b/media-video/ffmpeg/ffmpeg-3.2.2.ebuild |
20 |
@@ -284,6 +284,8 @@ RESTRICT=" |
21 |
|
22 |
S=${WORKDIR}/${P/_/-} |
23 |
|
24 |
+PATCHES=( "${FILESDIR}/chromaprint14.patch" ) |
25 |
+ |
26 |
MULTILIB_WRAPPED_HEADERS=( |
27 |
/usr/include/libavutil/avconfig.h |
28 |
) |
29 |
|
30 |
diff --git a/media-video/ffmpeg/files/chromaprint14.patch b/media-video/ffmpeg/files/chromaprint14.patch |
31 |
new file mode 100644 |
32 |
index 00000000..d166247 |
33 |
--- /dev/null |
34 |
+++ b/media-video/ffmpeg/files/chromaprint14.patch |
35 |
@@ -0,0 +1,24 @@ |
36 |
+commit 581f93f37ef2e7a00662828ed0348d1edb9041fe |
37 |
+Author: Georgi D. Sotirov <gdsotirov@×××.bg> |
38 |
+Date: Tue Dec 6 21:07:59 2016 +0100 |
39 |
+ |
40 |
+ lavf/chromaprint: Update for version 1.4 |
41 |
+ |
42 |
+ Fixes ticket #5997. |
43 |
+ |
44 |
+diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c |
45 |
+index 8c9a6c0111..4da02bef76 100644 |
46 |
+--- a/libavformat/chromaprint.c |
47 |
++++ b/libavformat/chromaprint.c |
48 |
+@@ -39,7 +39,11 @@ typedef struct ChromaprintMuxContext { |
49 |
+ int silence_threshold; |
50 |
+ int algorithm; |
51 |
+ FingerprintFormat fp_format; |
52 |
++#if CPR_VERSION_INT >= AV_VERSION_INT(1, 4, 0) |
53 |
++ ChromaprintContext *ctx; |
54 |
++#else |
55 |
+ ChromaprintContext ctx; |
56 |
++#endif |
57 |
+ } ChromaprintMuxContext; |
58 |
+ |
59 |
+ static void cleanup(ChromaprintMuxContext *cpr) |