1 |
commit: 9d13a601d77a0e22d4bd8cd5b1079709518517c1 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 30 14:32:46 2015 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 30 14:45:33 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d13a601 |
7 |
|
8 |
media-libs/chromaprint: remove old. |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
|
12 |
media-libs/chromaprint/Manifest | 3 -- |
13 |
media-libs/chromaprint/chromaprint-0.6.ebuild | 45 ----------------- |
14 |
media-libs/chromaprint/chromaprint-0.7.ebuild | 52 ------------------- |
15 |
media-libs/chromaprint/chromaprint-1.1.ebuild | 56 -------------------- |
16 |
.../chromaprint/files/chromaprint-0.7-boost.patch | 8 --- |
17 |
.../chromaprint/files/chromaprint-0.7-ffmpeg.patch | 43 ---------------- |
18 |
.../chromaprint/files/chromaprint-0.7-libav9.patch | 44 ---------------- |
19 |
.../chromaprint/files/chromaprint-1.0-libav9.patch | 11 ---- |
20 |
.../files/chromaprint-1.1-ffmpeg2.patch | 13 ----- |
21 |
...chromaprint-1.1-libav_build_fix_for_tools.patch | 59 ---------------------- |
22 |
10 files changed, 334 deletions(-) |
23 |
|
24 |
diff --git a/media-libs/chromaprint/Manifest b/media-libs/chromaprint/Manifest |
25 |
index 11f8522..fcdbdff 100644 |
26 |
--- a/media-libs/chromaprint/Manifest |
27 |
+++ b/media-libs/chromaprint/Manifest |
28 |
@@ -1,4 +1 @@ |
29 |
-DIST chromaprint-0.6.tar.gz 542366 SHA256 5d9b82da226450c14e43482371a1b2a178e2604ab5b2e9259f33b1b461ee9d63 SHA512 8786c84877663d991d3114776c92b47eb4d813a338e312956a54c444ff07bca05692a019145c722bcbfadd8c2e4c2b6c5ccb0eb784d96d41f58b143e8d57db24 WHIRLPOOL 2ed6ccb8e36393afae971873455bb38bd801daf94912badeca067162a5ab467215799439bfb3afcb51bd302435bcd479b9a991d4f4db90c4783e6a43fe94b09f |
30 |
-DIST chromaprint-0.7.tar.gz 543811 SHA256 4e52c3fd443c91a5c429557753d4ba3f9d31d183810412c0d8600892f3975501 SHA512 2ac03f80888d6c12dd05c20adc82e0f2c9e6bf5edc099d7c7b719b8cb353151fb04b78f5c7bca672d5fe8357a791e86fdea7b6952a0d64c346c079548ebfcd38 WHIRLPOOL 34c5cb7c38dc0e4924e068ff0a695e571fdd2233046ef6ea84e9e0e27e6bf9f5eaedceb79c2f8120e9ac6eb30ace3bc9e15ba59027cd498426e7f94536e2da84 |
31 |
-DIST chromaprint-1.1.tar.gz 542360 SHA256 6b14d7ea4964581b73bd3f8038c8857c01e446421c1ae99cbbf64de26b47cd12 SHA512 3d439dfca979e2babc8d2c171b5cb36fd0a5d3b7475e02a0f8bae436f7096e189674b640119f0dccf7cc2cd214bd8674d46b018952f1e3e93ddc0ba19b5155f9 WHIRLPOOL 726c7710f7bd1c138d7ebd1de263a0e214cbd79faf60e35034a60cfd68a9d3b4e52fc1cc93ce4dc7d39683e3a5ac1d7e9bd6c8046cdb5cece83b9c2fbf4971b5 |
32 |
DIST chromaprint-1.2.tar.gz 529646 SHA256 822b8949a322ac04c6f8a3ed78f5e689bcc493c6ca0972bf627c913c8430031a SHA512 dc61db8894a20df3d7e7317cd7cd97148c19be5854dd66409341cb8e47c045e1c632b254e14a869279983a5af2cc6f9effea21b77a63dff729511e6144439cbb WHIRLPOOL b2efb45c23e950b6a4d95c078bed15b03ef35e423b106428a7607034276b343b8c223ffa71e021846ed48f535663e062ae8042d281d769a04effc9afd8a600dd |
33 |
|
34 |
diff --git a/media-libs/chromaprint/chromaprint-0.6.ebuild b/media-libs/chromaprint/chromaprint-0.6.ebuild |
35 |
deleted file mode 100644 |
36 |
index 1399c0c..0000000 |
37 |
--- a/media-libs/chromaprint/chromaprint-0.6.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,45 +0,0 @@ |
40 |
-# Copyright 1999-2012 Gentoo Foundation |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
-# $Id$ |
43 |
- |
44 |
-EAPI=4 |
45 |
-inherit cmake-utils |
46 |
- |
47 |
-DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" |
48 |
-HOMEPAGE="http://acoustid.org/chromaprint" |
49 |
-SRC_URI="mirror://github/lalinsky/${PN}/${P}.tar.gz" |
50 |
- |
51 |
-LICENSE="LGPL-2.1" |
52 |
-SLOT="0" |
53 |
-KEYWORDS="amd64 x86" |
54 |
-IUSE="test tools" |
55 |
- |
56 |
-# note: use ffmpeg instead of fftw because it's recommended and required for tools |
57 |
-RDEPEND=">=virtual/ffmpeg-0.6 |
58 |
- tools? ( >=media-libs/taglib-1.6 )" |
59 |
-DEPEND="${RDEPEND} |
60 |
- test? ( dev-cpp/gtest ) |
61 |
- tools? ( dev-libs/boost )" |
62 |
- |
63 |
-DOCS="NEWS.txt README.txt" |
64 |
- |
65 |
-src_configure() { |
66 |
- local mycmakeargs=( |
67 |
- $(cmake-utils_use_build tools EXAMPLES) |
68 |
- $(cmake-utils_use_build test TESTS) |
69 |
- $(cmake-utils_use_build tools) |
70 |
- -DWITH_AVFFT=ON |
71 |
- ) |
72 |
- |
73 |
- cmake-utils_src_configure |
74 |
-} |
75 |
- |
76 |
-src_test() { |
77 |
- cd "${CMAKE_BUILD_DIR}" || die |
78 |
- emake check |
79 |
-} |
80 |
- |
81 |
-src_install() { |
82 |
- cmake-utils_src_install |
83 |
- use tools && dobin "${CMAKE_BUILD_DIR}"/tools/fpcollect |
84 |
-} |
85 |
|
86 |
diff --git a/media-libs/chromaprint/chromaprint-0.7.ebuild b/media-libs/chromaprint/chromaprint-0.7.ebuild |
87 |
deleted file mode 100644 |
88 |
index 062c6e0..0000000 |
89 |
--- a/media-libs/chromaprint/chromaprint-0.7.ebuild |
90 |
+++ /dev/null |
91 |
@@ -1,52 +0,0 @@ |
92 |
-# Copyright 1999-2013 Gentoo Foundation |
93 |
-# Distributed under the terms of the GNU General Public License v2 |
94 |
-# $Id$ |
95 |
- |
96 |
-EAPI=4 |
97 |
-inherit cmake-utils |
98 |
- |
99 |
-DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" |
100 |
-HOMEPAGE="http://acoustid.org/chromaprint" |
101 |
-SRC_URI="mirror://github/lalinsky/${PN}/${P}.tar.gz" |
102 |
- |
103 |
-LICENSE="LGPL-2.1" |
104 |
-SLOT="0" |
105 |
-KEYWORDS="amd64 ~ppc x86" |
106 |
-IUSE="test tools" |
107 |
- |
108 |
-# note: use ffmpeg instead of fftw because it's recommended and required for tools |
109 |
-RDEPEND=">=virtual/ffmpeg-0.10 |
110 |
- tools? ( >=media-libs/taglib-1.6 )" |
111 |
-DEPEND="${RDEPEND} |
112 |
- test? ( |
113 |
- dev-cpp/gtest |
114 |
- dev-libs/boost |
115 |
- ) |
116 |
- tools? ( dev-libs/boost )" |
117 |
- |
118 |
-DOCS="NEWS.txt README.txt" |
119 |
- |
120 |
-PATCHES=( "${FILESDIR}"/${P}-boost.patch |
121 |
- "${FILESDIR}"/${P}-ffmpeg.patch |
122 |
- "${FILESDIR}"/${P}-libav9.patch ) |
123 |
- |
124 |
-src_configure() { |
125 |
- local mycmakeargs=( |
126 |
- $(cmake-utils_use_build tools EXAMPLES) |
127 |
- $(cmake-utils_use_build test TESTS) |
128 |
- $(cmake-utils_use_build tools) |
129 |
- -DWITH_AVFFT=ON |
130 |
- ) |
131 |
- |
132 |
- cmake-utils_src_configure |
133 |
-} |
134 |
- |
135 |
-src_test() { |
136 |
- cd "${CMAKE_BUILD_DIR}" || die |
137 |
- emake check |
138 |
-} |
139 |
- |
140 |
-src_install() { |
141 |
- cmake-utils_src_install |
142 |
- use tools && dobin "${CMAKE_BUILD_DIR}"/tools/fpcollect |
143 |
-} |
144 |
|
145 |
diff --git a/media-libs/chromaprint/chromaprint-1.1.ebuild b/media-libs/chromaprint/chromaprint-1.1.ebuild |
146 |
deleted file mode 100644 |
147 |
index 80080d9..0000000 |
148 |
--- a/media-libs/chromaprint/chromaprint-1.1.ebuild |
149 |
+++ /dev/null |
150 |
@@ -1,56 +0,0 @@ |
151 |
-# Copyright 1999-2014 Gentoo Foundation |
152 |
-# Distributed under the terms of the GNU General Public License v2 |
153 |
-# $Id$ |
154 |
- |
155 |
-EAPI=5 |
156 |
- |
157 |
-inherit cmake-utils |
158 |
- |
159 |
-DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" |
160 |
-HOMEPAGE="http://acoustid.org/chromaprint" |
161 |
-SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz" |
162 |
- |
163 |
-LICENSE="LGPL-2.1" |
164 |
-SLOT="0" |
165 |
-KEYWORDS="amd64 ~ppc x86 ~amd64-fbsd" |
166 |
-IUSE="test tools" |
167 |
- |
168 |
-# note: use ffmpeg instead of fftw because it's recommended and required for tools |
169 |
-RDEPEND=" |
170 |
- >=virtual/ffmpeg-0.10 |
171 |
- tools? ( >=media-libs/taglib-1.6 )" |
172 |
-DEPEND="${RDEPEND} |
173 |
- test? ( |
174 |
- dev-cpp/gtest |
175 |
- dev-libs/boost |
176 |
- ) |
177 |
- tools? ( dev-libs/boost )" |
178 |
- |
179 |
-DOCS="NEWS.txt README.txt" |
180 |
- |
181 |
-PATCHES=( |
182 |
- "${FILESDIR}"/${PN}-0.7-ffmpeg.patch |
183 |
- "${FILESDIR}"/${P}-gtest.patch |
184 |
- "${FILESDIR}"/${P}-ffmpeg2.patch |
185 |
- "${FILESDIR}"/${P}-libav_build_fix_for_tools.patch |
186 |
-) |
187 |
- |
188 |
-src_configure() { |
189 |
- local mycmakeargs=( |
190 |
- $(cmake-utils_use_build tools EXAMPLES) |
191 |
- $(cmake-utils_use_build test TESTS) |
192 |
- $(cmake-utils_use_build tools) |
193 |
- -DWITH_AVFFT=ON |
194 |
- ) |
195 |
- cmake-utils_src_configure |
196 |
-} |
197 |
- |
198 |
-src_test() { |
199 |
- cd "${BUILD_DIR}" || die |
200 |
- emake check |
201 |
-} |
202 |
- |
203 |
-src_install() { |
204 |
- cmake-utils_src_install |
205 |
- use tools && dobin "${BUILD_DIR}"/tools/fpcollect |
206 |
-} |
207 |
|
208 |
diff --git a/media-libs/chromaprint/files/chromaprint-0.7-boost.patch b/media-libs/chromaprint/files/chromaprint-0.7-boost.patch |
209 |
deleted file mode 100644 |
210 |
index 46df857..0000000 |
211 |
--- a/media-libs/chromaprint/files/chromaprint-0.7-boost.patch |
212 |
+++ /dev/null |
213 |
@@ -1,8 +0,0 @@ |
214 |
---- chromaprint-0.7/tests/CMakeLists.txt |
215 |
-+++ chromaprint-0.7/tests/CMakeLists.txt |
216 |
-@@ -1,4 +1,5 @@ |
217 |
- include_directories( |
218 |
-+ ${Boost_INCLUDE_DIRS} |
219 |
- ${GTEST_INCLUDE_DIRS} |
220 |
- ${CMAKE_CURRENT_SOURCE_DIR}/../src |
221 |
- ) |
222 |
|
223 |
diff --git a/media-libs/chromaprint/files/chromaprint-0.7-ffmpeg.patch b/media-libs/chromaprint/files/chromaprint-0.7-ffmpeg.patch |
224 |
deleted file mode 100644 |
225 |
index f51e779..0000000 |
226 |
--- a/media-libs/chromaprint/files/chromaprint-0.7-ffmpeg.patch |
227 |
+++ /dev/null |
228 |
@@ -1,43 +0,0 @@ |
229 |
-https://bugs.gentoo.org/show_bug.cgi?id=435856 |
230 |
-https://raw.github.com/pld-linux/chromaprint/master/chromaprint-ffmpeg.patch |
231 |
- |
232 |
---- chromaprint-0.7/src/ext/ffmpeg_decoder.h.orig 2012-09-05 20:05:36.000000000 +0200 |
233 |
-+++ chromaprint-0.7/src/ext/ffmpeg_decoder.h 2012-10-10 17:59:58.632685943 +0200 |
234 |
-@@ -80,7 +80,7 @@ |
235 |
- avcodec_close(m_codec_ctx); |
236 |
- } |
237 |
- if (m_format_ctx) { |
238 |
-- av_close_input_file(m_format_ctx); |
239 |
-+ avformat_close_input(&m_format_ctx); |
240 |
- } |
241 |
- //av_audio_convert_free(m_convert_ctx); |
242 |
- av_free(m_buffer2); |
243 |
-@@ -89,12 +89,12 @@ |
244 |
- |
245 |
- inline bool Decoder::Open() |
246 |
- { |
247 |
-- if (av_open_input_file(&m_format_ctx, m_file_name.c_str(), NULL, 0, NULL) != 0) { |
248 |
-+ if (avformat_open_input(&m_format_ctx, m_file_name.c_str(), NULL, NULL) != 0) { |
249 |
- m_error = "Couldn't open the file." + m_file_name; |
250 |
- return false; |
251 |
- } |
252 |
- |
253 |
-- if (av_find_stream_info(m_format_ctx) < 0) { |
254 |
-+ if (avformat_find_stream_info(m_format_ctx, NULL) < 0) { |
255 |
- m_error = "Couldn't find stream information in the file."; |
256 |
- return false; |
257 |
- } |
258 |
-@@ -129,11 +129,11 @@ |
259 |
- return false; |
260 |
- } |
261 |
- |
262 |
-- if (m_codec_ctx->sample_fmt != SAMPLE_FMT_S16) { |
263 |
-+ if (m_codec_ctx->sample_fmt != AV_SAMPLE_FMT_S16) { |
264 |
- m_error = "Unsupported sample format.\n"; |
265 |
- return false; |
266 |
- } |
267 |
-- /*m_convert_ctx = av_audio_convert_alloc(SAMPLE_FMT_S16, 1, |
268 |
-+ /*m_convert_ctx = av_audio_convert_alloc(AV_SAMPLE_FMT_S16, 1, |
269 |
- m_codec_ctx->sample_fmt, 1, |
270 |
- NULL, 0); |
271 |
- if (!m_convert_ctx) { |
272 |
|
273 |
diff --git a/media-libs/chromaprint/files/chromaprint-0.7-libav9.patch b/media-libs/chromaprint/files/chromaprint-0.7-libav9.patch |
274 |
deleted file mode 100644 |
275 |
index c520970..0000000 |
276 |
--- a/media-libs/chromaprint/files/chromaprint-0.7-libav9.patch |
277 |
+++ /dev/null |
278 |
@@ -1,44 +0,0 @@ |
279 |
-diff -burN chromaprint-0.7.orig//src/fft_lib_avfft.h chromaprint-0.7/src/fft_lib_avfft.h |
280 |
---- chromaprint-0.7.orig//src/fft_lib_avfft.h 2012-09-05 20:05:36.000000000 +0200 |
281 |
-+++ chromaprint-0.7/src/fft_lib_avfft.h 2013-02-16 17:34:08.682624779 +0100 |
282 |
-@@ -25,6 +25,7 @@ |
283 |
- extern "C" { |
284 |
- #include <libavcodec/avcodec.h> |
285 |
- #include <libavcodec/avfft.h> |
286 |
-+#include <libavutil/mem.h> |
287 |
- } |
288 |
- #include "combined_buffer.h" |
289 |
- |
290 |
-diff -burN chromaprint-0.7.orig/examples/fpcalc.c chromaprint-0.7/work/chromaprint-0.7/examples/fpcalc.c |
291 |
---- chromaprint-0.7.orig/examples/fpcalc.c 2012-09-05 20:05:36.000000000 +0200 |
292 |
-+++ chromaprint-0.7/examples/fpcalc.c 2013-02-16 17:40:09.947611629 +0100 |
293 |
-@@ -42,7 +42,7 @@ |
294 |
- goto done; |
295 |
- } |
296 |
- |
297 |
-- if (av_find_stream_info(format_ctx) < 0) { |
298 |
-+ if (avformat_find_stream_info(format_ctx, NULL) < 0) { |
299 |
- fprintf(stderr, "ERROR: couldn't find stream information in the file\n"); |
300 |
- goto done; |
301 |
- } |
302 |
-@@ -65,7 +65,7 @@ |
303 |
- goto done; |
304 |
- } |
305 |
- |
306 |
-- if (avcodec_open(codec_ctx, codec) < 0) { |
307 |
-+ if (avcodec_open2(codec_ctx, codec, NULL) < 0) { |
308 |
- fprintf(stderr, "ERROR: couldn't open the codec\n"); |
309 |
- goto done; |
310 |
- } |
311 |
-diff -burN chromaprint-0.7.orig/src/ext/ffmpeg_decoder.h chromaprint-0.7/src/ext/ffmpeg_decoder.h |
312 |
---- chromaprint-0.7.orig/src/ext/ffmpeg_decoder.h 2013-02-16 17:49:06.799592088 +0100 |
313 |
-+++ chromaprint-0.7/src/ext/ffmpeg_decoder.h 2013-02-16 17:49:54.037590369 +0100 |
314 |
-@@ -124,7 +124,7 @@ |
315 |
- return false; |
316 |
- } |
317 |
- |
318 |
-- if (avcodec_open(m_codec_ctx, codec) < 0) { |
319 |
-+ if (avcodec_open2(m_codec_ctx, codec, NULL) < 0) { |
320 |
- m_error = "Couldn't open the codec."; |
321 |
- return false; |
322 |
- } |
323 |
|
324 |
diff --git a/media-libs/chromaprint/files/chromaprint-1.0-libav9.patch b/media-libs/chromaprint/files/chromaprint-1.0-libav9.patch |
325 |
deleted file mode 100644 |
326 |
index e816790..0000000 |
327 |
--- a/media-libs/chromaprint/files/chromaprint-1.0-libav9.patch |
328 |
+++ /dev/null |
329 |
@@ -1,11 +0,0 @@ |
330 |
---- chromaprint-1.0.orig/src/ext/ffmpeg_decoder.h 2013-11-03 17:32:04.347686878 +0800 |
331 |
-+++ chromaprint-1.0/src/ext/ffmpeg_decoder.h 2013-11-03 17:32:41.082686494 +0800 |
332 |
-@@ -124,7 +124,7 @@ |
333 |
- return false; |
334 |
- } |
335 |
- |
336 |
-- if (avcodec_open(m_codec_ctx, codec) < 0) { |
337 |
-+ if (avcodec_open2(m_codec_ctx, codec, NULL) < 0) { |
338 |
- m_error = "Couldn't open the codec."; |
339 |
- return false; |
340 |
- } |
341 |
|
342 |
diff --git a/media-libs/chromaprint/files/chromaprint-1.1-ffmpeg2.patch b/media-libs/chromaprint/files/chromaprint-1.1-ffmpeg2.patch |
343 |
deleted file mode 100644 |
344 |
index 2a68de3..0000000 |
345 |
--- a/media-libs/chromaprint/files/chromaprint-1.1-ffmpeg2.patch |
346 |
+++ /dev/null |
347 |
@@ -1,13 +0,0 @@ |
348 |
---- chromaprint-1.1/src/ext/ffmpeg_decoder.h |
349 |
-+++ chromaprint-1.1/src/ext/ffmpeg_decoder.h |
350 |
-@@ -28,6 +28,10 @@ |
351 |
- } |
352 |
- #include "audio_consumer.h" |
353 |
- |
354 |
-+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE |
355 |
-+# define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 |
356 |
-+#endif |
357 |
-+ |
358 |
- class Decoder |
359 |
- { |
360 |
- public: |
361 |
|
362 |
diff --git a/media-libs/chromaprint/files/chromaprint-1.1-libav_build_fix_for_tools.patch b/media-libs/chromaprint/files/chromaprint-1.1-libav_build_fix_for_tools.patch |
363 |
deleted file mode 100644 |
364 |
index b53f798..0000000 |
365 |
--- a/media-libs/chromaprint/files/chromaprint-1.1-libav_build_fix_for_tools.patch |
366 |
+++ /dev/null |
367 |
@@ -1,59 +0,0 @@ |
368 |
-http://bugs.gentoo.org/498194 |
369 |
-http://bitbucket.org/acoustid/chromaprint/commits/90822f6eee64da2941c9cbd9cd41a9664fead1d4 |
370 |
- |
371 |
-From 90822f6eee64da2941c9cbd9cd41a9664fead1d4 Mon Sep 17 00:00:00 2001 |
372 |
-From: Urs Fleisch <ufleisch@×××××××××××××××××.net> |
373 |
-Date: Sat, 28 Dec 2013 09:47:31 +0100 |
374 |
-Subject: [PATCH] Build fpcalc if neither HAVE_SWRESAMPLE nor HAVE_AVRESAMPLE |
375 |
- defined, issue #11. |
376 |
- |
377 |
---- |
378 |
- examples/fpcalc.c | 9 +++++++-- |
379 |
- 1 file changed, 7 insertions(+), 2 deletions(-) |
380 |
- |
381 |
-diff --git a/examples/fpcalc.c b/examples/fpcalc.c |
382 |
-index a4b0ff9..e73e358 100644 |
383 |
---- a/examples/fpcalc.c |
384 |
-+++ b/examples/fpcalc.c |
385 |
-@@ -33,6 +33,8 @@ int decode_audio_file(ChromaprintContext *chromaprint_ctx, const char *file_name |
386 |
- SwrContext *convert_ctx = NULL; |
387 |
- #elif defined(HAVE_AVRESAMPLE) |
388 |
- AVAudioResampleContext *convert_ctx = NULL; |
389 |
-+#else |
390 |
-+ void *convert_ctx = NULL; |
391 |
- #endif |
392 |
- int max_dst_nb_samples = 0, dst_linsize = 0; |
393 |
- uint8_t *dst_data[1] = { NULL }; |
394 |
-@@ -75,6 +77,7 @@ int decode_audio_file(ChromaprintContext *chromaprint_ctx, const char *file_name |
395 |
- goto done; |
396 |
- } |
397 |
- |
398 |
-+#if defined(HAVE_SWRESAMPLE) || defined(HAVE_AVRESAMPLE) |
399 |
- if (codec_ctx->sample_fmt != AV_SAMPLE_FMT_S16) { |
400 |
- int64_t channel_layout = codec_ctx->channel_layout; |
401 |
- if (!channel_layout) { |
402 |
-@@ -111,6 +114,7 @@ int decode_audio_file(ChromaprintContext *chromaprint_ctx, const char *file_name |
403 |
- } |
404 |
- #endif |
405 |
- } |
406 |
-+#endif |
407 |
- |
408 |
- if (stream->duration != AV_NOPTS_VALUE) { |
409 |
- *duration = stream->time_base.num * stream->duration / stream->time_base.den; |
410 |
-@@ -155,10 +159,11 @@ int decode_audio_file(ChromaprintContext *chromaprint_ctx, const char *file_name |
411 |
- max_dst_nb_samples = frame->nb_samples; |
412 |
- } |
413 |
- #if defined(HAVE_SWRESAMPLE) |
414 |
-- if (swr_convert(convert_ctx, dst_data, frame->nb_samples, (const uint8_t **)frame->data, frame->nb_samples) < 0) { |
415 |
-+ if (swr_convert(convert_ctx, dst_data, frame->nb_samples, (const uint8_t **)frame->data, frame->nb_samples) < 0) |
416 |
- #elif defined(HAVE_AVRESAMPLE) |
417 |
-- if (avresample_convert(convert_ctx, dst_data, 0, frame->nb_samples, (uint8_t **)frame->data, 0, frame->nb_samples) < 0) { |
418 |
-+ if (avresample_convert(convert_ctx, dst_data, 0, frame->nb_samples, (uint8_t **)frame->data, 0, frame->nb_samples) < 0) |
419 |
- #endif |
420 |
-+ { |
421 |
- fprintf(stderr, "ERROR: couldn't convert the audio\n"); |
422 |
- goto done; |
423 |
- } |
424 |
--- |
425 |
-1.9.rc2.211.gd198f5d |
426 |
- |