1 |
commit: ed8e89fcf98331b1c04751d93284b8f9b0884b35 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 2 12:04:16 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 2 12:11:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed8e89fc |
7 |
|
8 |
media-libs/faac: Security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/635602 |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.10 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
media-libs/faac/Manifest | 2 - |
15 |
media-libs/faac/faac-1.28-r4.ebuild | 59 --------- |
16 |
media-libs/faac/faac-1.29.8.3.ebuild | 45 ------- |
17 |
media-libs/faac/files/faac-1.28-altivec.patch | 40 ------ |
18 |
.../faac/files/faac-1.28-external-libmp4v2.patch | 47 ------- |
19 |
media-libs/faac/files/faac-1.28-inttypes.patch | 41 ------ |
20 |
.../files/faac-1.28-libmp4v2_r479_compat.patch | 138 --------------------- |
21 |
7 files changed, 372 deletions(-) |
22 |
|
23 |
diff --git a/media-libs/faac/Manifest b/media-libs/faac/Manifest |
24 |
index 2b98cc843f7..95a79b6be69 100644 |
25 |
--- a/media-libs/faac/Manifest |
26 |
+++ b/media-libs/faac/Manifest |
27 |
@@ -1,3 +1 @@ |
28 |
-DIST faac-1.28.tar.gz 678891 BLAKE2B c5d173649f3df77af7e9856150c52e3edd4dd6bac9c4d66463fa846edab1df4d209113946658820af6413abcd62a7a1101ad30366fc6cc07541c66f9cc7746ba SHA512 0ef721ad28835e95cad41afc0cb6130e1ebb634cb6dd4b40f649bc2269b7bb5bf2887f6d8f023c74628d521f8bdf55b4dd070f972ecff162a5fe0384e026235b |
29 |
-DIST faac-1.29.8.3.tar.gz 483404 BLAKE2B b5301fe63da7a059d0d4cf298107585295a3f385262c0c7715f5aa252a7400288b5be85cf26ea1ccf43e017c0f00fbf6942a91b903637660843701e1a28a6799 SHA512 2f17d87245c5cdb1ea37f21fb67f5a239f24133bb863bd635bb1f223d8d54c13d23ad43e93954a89361109c39b01e3b506ee791ffdf52741f76feb8bd1ed316c |
30 |
DIST faac-1.29.9.2.tar.gz 483826 BLAKE2B f845e75ec640f2a6ac41ad10dfdf1dbc6a6ddef3cb8cc3fe63450515f888343126cb2ec1df4c4eaaefed3d7d5d56249078f14363fcb9d9484228e9b1754a8b99 SHA512 71aaf060d087e866700a3a7c7d447e85709f65709e148610c4b34f5a3e095fa4a5c19f49450610949fd7db12345422b8a116a1d061899c127ad9a1bc30e79c7c |
31 |
|
32 |
diff --git a/media-libs/faac/faac-1.28-r4.ebuild b/media-libs/faac/faac-1.28-r4.ebuild |
33 |
deleted file mode 100644 |
34 |
index 4196ae0cfde..00000000000 |
35 |
--- a/media-libs/faac/faac-1.28-r4.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,59 +0,0 @@ |
38 |
-# Copyright 1999-2017 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=5 |
42 |
-# eutils for einstalldocs |
43 |
-inherit autotools epatch epunt-cxx eutils ltprune multilib-minimal |
44 |
- |
45 |
-DESCRIPTION="Free MPEG-4 audio codecs by AudioCoding.com" |
46 |
-HOMEPAGE="http://www.audiocoding.com" |
47 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
48 |
- |
49 |
-LICENSE="LGPL-2.1 MPEG-4" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
52 |
-IUSE="static-libs" |
53 |
- |
54 |
-RDEPEND="media-libs/libmp4v2:0=" |
55 |
-DEPEND="${RDEPEND}" |
56 |
-DOCS=( AUTHORS ChangeLog NEWS README TODO ) |
57 |
- |
58 |
-src_prepare() { |
59 |
- epatch \ |
60 |
- "${FILESDIR}"/${P}-external-libmp4v2.patch \ |
61 |
- "${FILESDIR}"/${P}-altivec.patch \ |
62 |
- "${FILESDIR}"/${P}-libmp4v2_r479_compat.patch \ |
63 |
- "${FILESDIR}"/${P}-inttypes.patch |
64 |
- |
65 |
- sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #466984 |
66 |
- |
67 |
- eautoreconf |
68 |
- epunt_cxx |
69 |
-} |
70 |
- |
71 |
-multilib_src_configure() { |
72 |
- local myconf |
73 |
- # only used for the fronted we need only for the default ABI. |
74 |
- [ "${ABI}" != "${DEFAULT_ABI}" ] && myconf+=" --without-mp4v2" |
75 |
- |
76 |
- ECONF_SOURCE="${S}" econf \ |
77 |
- $(use_enable static-libs static) \ |
78 |
- ${myconf} |
79 |
- |
80 |
- # do not build the frontend for non default abis |
81 |
- if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then |
82 |
- sed -i -e 's/frontend//' Makefile || die |
83 |
- fi |
84 |
-} |
85 |
- |
86 |
-multilib_src_install() { |
87 |
- emake DESTDIR="${D}" install |
88 |
- prune_libtool_files |
89 |
-} |
90 |
- |
91 |
-multilib_src_install_all() { |
92 |
- einstalldocs |
93 |
- dohtml docs/*.html |
94 |
- insinto /usr/share/doc/${PF}/pdf |
95 |
- doins docs/libfaac.pdf |
96 |
-} |
97 |
|
98 |
diff --git a/media-libs/faac/faac-1.29.8.3.ebuild b/media-libs/faac/faac-1.29.8.3.ebuild |
99 |
deleted file mode 100644 |
100 |
index 384836d70d7..00000000000 |
101 |
--- a/media-libs/faac/faac-1.29.8.3.ebuild |
102 |
+++ /dev/null |
103 |
@@ -1,45 +0,0 @@ |
104 |
-# Copyright 1999-2017 Gentoo Foundation |
105 |
-# Distributed under the terms of the GNU General Public License v2 |
106 |
- |
107 |
-EAPI=6 |
108 |
-# eutils for einstalldocs |
109 |
-inherit autotools epatch epunt-cxx eutils ltprune multilib-minimal |
110 |
- |
111 |
-DESCRIPTION="Free MPEG-4 audio codecs by AudioCoding.com" |
112 |
-HOMEPAGE="http://www.audiocoding.com" |
113 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
114 |
- |
115 |
-LICENSE="LGPL-2.1 MPEG-4" |
116 |
-SLOT="0" |
117 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
118 |
-IUSE="static-libs" |
119 |
- |
120 |
-DEPEND="${RDEPEND}" |
121 |
-DOCS=( AUTHORS ChangeLog NEWS README TODO ) |
122 |
- |
123 |
-src_prepare() { |
124 |
- default |
125 |
- |
126 |
- sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466984 |
127 |
- |
128 |
- eautoreconf |
129 |
- epunt_cxx |
130 |
-} |
131 |
- |
132 |
-multilib_src_configure() { |
133 |
- local myconf=( |
134 |
- $(use_enable static-libs static) |
135 |
- ) |
136 |
- |
137 |
- ECONF_SOURCE="${S}" econf ${myconf[@]} |
138 |
- |
139 |
- # do not build the frontend for non default abis |
140 |
- if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then |
141 |
- sed -i -e 's/frontend//' Makefile || die |
142 |
- fi |
143 |
-} |
144 |
- |
145 |
-multilib_src_install() { |
146 |
- emake DESTDIR="${D}" install |
147 |
- prune_libtool_files |
148 |
-} |
149 |
|
150 |
diff --git a/media-libs/faac/files/faac-1.28-altivec.patch b/media-libs/faac/files/faac-1.28-altivec.patch |
151 |
deleted file mode 100644 |
152 |
index ae461efc30d..00000000000 |
153 |
--- a/media-libs/faac/files/faac-1.28-altivec.patch |
154 |
+++ /dev/null |
155 |
@@ -1,40 +0,0 @@ |
156 |
-http://bugs.gentoo.org/306881 |
157 |
- |
158 |
---- configure.in |
159 |
-+++ configure.in |
160 |
-@@ -33,7 +33,12 @@ |
161 |
- AC_CHECK_DECLS([MP4Create, MP4MetadataDelete], |
162 |
- AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes, |
163 |
- external_mp4v2=no, -lstdc++), |
164 |
-- external_mp4v2=no, [#include <mp4v2/mp4v2.h>]) |
165 |
-+ external_mp4v2=no, [ |
166 |
-+ #if defined(__ALTIVEC__) |
167 |
-+ #undef bool |
168 |
-+ #endif |
169 |
-+ #include <mp4v2/mp4v2.h> |
170 |
-+ ]) |
171 |
- |
172 |
- if test x$external_mp4v2 = xyes; then |
173 |
- AC_MSG_NOTICE([*** Building with external mp4v2 ***]) |
174 |
---- frontend/main.c |
175 |
-+++ frontend/main.c |
176 |
-@@ -30,6 +30,9 @@ |
177 |
- #endif |
178 |
- |
179 |
- #ifdef HAVE_LIBMP4V2 |
180 |
-+#if defined(__ALTIVEC__) |
181 |
-+# undef bool |
182 |
-+#endif |
183 |
- # include <mp4v2/mp4v2.h> |
184 |
- #endif |
185 |
- |
186 |
---- common/mp4v2/mpeg4ip.h |
187 |
-+++ common/mp4v2/mpeg4ip.h |
188 |
-@@ -123,7 +123,6 @@ |
189 |
- #ifdef __cplusplus |
190 |
- extern "C" { |
191 |
- #endif |
192 |
--char *strcasestr(const char *haystack, const char *needle); |
193 |
- #ifdef __cplusplus |
194 |
- } |
195 |
- #endif |
196 |
|
197 |
diff --git a/media-libs/faac/files/faac-1.28-external-libmp4v2.patch b/media-libs/faac/files/faac-1.28-external-libmp4v2.patch |
198 |
deleted file mode 100644 |
199 |
index 54a63347b87..00000000000 |
200 |
--- a/media-libs/faac/files/faac-1.28-external-libmp4v2.patch |
201 |
+++ /dev/null |
202 |
@@ -1,47 +0,0 @@ |
203 |
-diff -ur faac-1.28.orig/configure.in faac-1.28/configure.in |
204 |
---- faac-1.28.orig/configure.in 2009-02-05 02:55:38.000000000 +0200 |
205 |
-+++ faac-1.28/configure.in 2009-07-10 13:21:34.000000000 +0300 |
206 |
-@@ -28,14 +28,17 @@ |
207 |
- AC_CHECK_LIB(gnugetopt, getopt_long) |
208 |
- |
209 |
- AM_CONDITIONAL(WITH_MP4V2, false) |
210 |
-+AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, false) |
211 |
- |
212 |
- AC_CHECK_DECLS([MP4Create, MP4MetadataDelete], |
213 |
- AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes, |
214 |
- external_mp4v2=no, -lstdc++), |
215 |
-- external_mp4v2=no, [#include <mp4.h>]) |
216 |
-+ external_mp4v2=no, [#include <mp4v2/mp4v2.h>]) |
217 |
- |
218 |
- if test x$external_mp4v2 = xyes; then |
219 |
- AC_MSG_NOTICE([*** Building with external mp4v2 ***]) |
220 |
-+ MY_DEFINE(HAVE_LIBMP4V2) |
221 |
-+ AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, true) |
222 |
- else |
223 |
- if test x$WITHMP4V2 = xyes; then |
224 |
- AC_MSG_NOTICE([*** Building with internal mp4v2 ***]) |
225 |
-diff -ur faac-1.28.orig/frontend/main.c faac-1.28/frontend/main.c |
226 |
---- faac-1.28.orig/frontend/main.c 2009-01-24 03:10:20.000000000 +0200 |
227 |
-+++ faac-1.28/frontend/main.c 2009-07-10 13:22:18.000000000 +0300 |
228 |
-@@ -30,7 +30,7 @@ |
229 |
- #endif |
230 |
- |
231 |
- #ifdef HAVE_LIBMP4V2 |
232 |
--# include <mp4.h> |
233 |
-+# include <mp4v2/mp4v2.h> |
234 |
- #endif |
235 |
- |
236 |
- #define DEFAULT_TNS 0 |
237 |
-diff -ur faac-1.28.orig/frontend/Makefile.am faac-1.28/frontend/Makefile.am |
238 |
---- faac-1.28.orig/frontend/Makefile.am 2008-12-16 02:56:00.000000000 +0200 |
239 |
-+++ faac-1.28/frontend/Makefile.am 2009-07-10 13:21:55.000000000 +0300 |
240 |
-@@ -8,5 +8,9 @@ |
241 |
- LDADD = $(top_builddir)/libfaac/libfaac.la $(top_srcdir)/common/mp4v2/libmp4v2.a -lm -lstdc++ |
242 |
- else |
243 |
- INCLUDES = -I$(top_srcdir)/include |
244 |
-+if WITH_EXTERNAL_MP4V2 |
245 |
-+LDADD = $(top_builddir)/libfaac/libfaac.la -lm -lmp4v2 |
246 |
-+else |
247 |
- LDADD = $(top_builddir)/libfaac/libfaac.la -lm |
248 |
- endif |
249 |
-+endif |
250 |
|
251 |
diff --git a/media-libs/faac/files/faac-1.28-inttypes.patch b/media-libs/faac/files/faac-1.28-inttypes.patch |
252 |
deleted file mode 100644 |
253 |
index 09304fb6017..00000000000 |
254 |
--- a/media-libs/faac/files/faac-1.28-inttypes.patch |
255 |
+++ /dev/null |
256 |
@@ -1,41 +0,0 @@ |
257 |
-use standard integer types, not linux ones |
258 |
- |
259 |
---- frontend/main.c |
260 |
-+++ frontend/main.c |
261 |
-@@ -440,13 +440,13 @@ |
262 |
- MP4TrackId MP4track = 0; |
263 |
- unsigned int ntracks = 0, trackno = 0; |
264 |
- unsigned int ndiscs = 0, discno = 0; |
265 |
-- u_int8_t compilation = 0; |
266 |
-+ uint8_t compilation = 0; |
267 |
- const char *artist = NULL, *title = NULL, *album = NULL, *year = NULL, |
268 |
- *genre = NULL, *comment = NULL, *writer = NULL; |
269 |
-- u_int8_t *art = NULL; |
270 |
-- u_int64_t artSize = 0; |
271 |
-- u_int64_t total_samples = 0; |
272 |
-- u_int64_t encoded_samples = 0; |
273 |
-+ uint8_t *art = NULL; |
274 |
-+ uint64_t artSize = 0; |
275 |
-+ uint64_t total_samples = 0; |
276 |
-+ uint64_t encoded_samples = 0; |
277 |
- unsigned int delay_samples; |
278 |
- unsigned int frameSize; |
279 |
- #endif |
280 |
-@@ -647,7 +647,7 @@ |
281 |
- FILE *artFile = fopen(optarg, "rb"); |
282 |
- |
283 |
- if(artFile) { |
284 |
-- u_int64_t r; |
285 |
-+ uint64_t r; |
286 |
- |
287 |
- fseek(artFile, 0, SEEK_END); |
288 |
- artSize = ftell(artFile); |
289 |
-@@ -1112,7 +1112,7 @@ |
290 |
- if (bytesWritten > 0) |
291 |
- { |
292 |
- #ifdef HAVE_LIBMP4V2 |
293 |
-- u_int64_t samples_left = total_samples - encoded_samples + delay_samples; |
294 |
-+ uint64_t samples_left = total_samples - encoded_samples + delay_samples; |
295 |
- MP4Duration dur = samples_left > frameSize ? frameSize : samples_left; |
296 |
- MP4Duration ofs = encoded_samples > 0 ? 0 : delay_samples; |
297 |
- |
298 |
|
299 |
diff --git a/media-libs/faac/files/faac-1.28-libmp4v2_r479_compat.patch b/media-libs/faac/files/faac-1.28-libmp4v2_r479_compat.patch |
300 |
deleted file mode 100644 |
301 |
index 6aae0d7793e..00000000000 |
302 |
--- a/media-libs/faac/files/faac-1.28-libmp4v2_r479_compat.patch |
303 |
+++ /dev/null |
304 |
@@ -1,138 +0,0 @@ |
305 |
-http://bugs.gentoo.org/397575 |
306 |
-https://sourceforge.net/tracker/?func=detail&aid=3476707&group_id=704&atid=100704 |
307 |
- |
308 |
---- configure.in |
309 |
-+++ configure.in |
310 |
-@@ -33,8 +33,8 @@ AC_CHECK_LIB(gnugetopt, getopt_long) |
311 |
- AM_CONDITIONAL(WITH_MP4V2, false) |
312 |
- AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, false) |
313 |
- |
314 |
--AC_CHECK_DECLS([MP4Create, MP4MetadataDelete], |
315 |
-- AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes, |
316 |
-+AC_CHECK_DECLS([MP4Create], |
317 |
-+ AC_CHECK_LIB(mp4v2, MP4Create, external_mp4v2=yes, |
318 |
- external_mp4v2=no, -lstdc++), |
319 |
- external_mp4v2=no, [#include <mp4v2/mp4v2.h>]) |
320 |
- |
321 |
-@@ -42,6 +42,7 @@ if test x$external_mp4v2 = xyes; then |
322 |
- AC_MSG_NOTICE([*** Building with external mp4v2 ***]) |
323 |
- MY_DEFINE(HAVE_EXTERNAL_LIBMP4V2) |
324 |
- AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, true) |
325 |
-+ AC_CHECK_DECLS([MP4TagsAlloc], [], [], [#include <mp4v2/mp4v2.h>]) |
326 |
- else |
327 |
- if test x$WITHMP4V2 = xyes; then |
328 |
- AC_MSG_NOTICE([*** Building with internal mp4v2 ***]) |
329 |
---- frontend/main.c |
330 |
-+++ frontend/main.c |
331 |
-@@ -873,8 +873,12 @@ int main(int argc, char *argv[]) |
332 |
- if (!faacEncSetConfiguration(hEncoder, myFormat)) { |
333 |
- fprintf(stderr, "Unsupported output format!\n"); |
334 |
- #ifdef HAVE_LIBMP4V2 |
335 |
-+#ifdef MP4_CLOSE_DO_NOT_COMPUTE_BITRATE /* r479 fix */ |
336 |
-+ if (container == MP4_CONTAINER) MP4Close(MP4hFile, 0); |
337 |
-+#else |
338 |
- if (container == MP4_CONTAINER) MP4Close(MP4hFile); |
339 |
- #endif |
340 |
-+#endif |
341 |
- return 1; |
342 |
- } |
343 |
- |
344 |
-@@ -885,12 +889,10 @@ int main(int argc, char *argv[]) |
345 |
- unsigned long ASCLength = 0; |
346 |
- char *version_string; |
347 |
- |
348 |
--#ifdef MP4_CREATE_EXTENSIBLE_FORMAT |
349 |
-- /* hack to compile against libmp4v2 >= 1.0RC3 |
350 |
-- * why is there no version identifier in mp4.h? */ |
351 |
-+#ifdef MP4_DETAILS_ERROR /* r453 fix */ |
352 |
- MP4hFile = MP4Create(aacFileName, MP4_DETAILS_ERROR, 0); |
353 |
- #else |
354 |
-- MP4hFile = MP4Create(aacFileName, MP4_DETAILS_ERROR, 0, 0); |
355 |
-+ MP4hFile = MP4Create(aacFileName, 0); |
356 |
- #endif |
357 |
- if (!MP4_IS_VALID_FILE_HANDLE(MP4hFile)) { |
358 |
- fprintf(stderr, "Couldn't create output file %s\n", aacFileName); |
359 |
-@@ -905,12 +907,22 @@ int main(int argc, char *argv[]) |
360 |
- free(ASC); |
361 |
- |
362 |
- /* set metadata */ |
363 |
-+#if HAVE_DECL_MP4TAGSALLOC |
364 |
-+ const MP4Tags* tags; |
365 |
-+ tags = MP4TagsAlloc(); |
366 |
-+ MP4TagsFetch( tags, MP4hFile ); |
367 |
-+#endif |
368 |
- version_string = malloc(strlen(faac_id_string) + 6); |
369 |
- strcpy(version_string, "FAAC "); |
370 |
- strcpy(version_string + 5, faac_id_string); |
371 |
-+#if !HAVE_DECL_MP4TAGSALLOC |
372 |
- MP4SetMetadataTool(MP4hFile, version_string); |
373 |
-+#else |
374 |
-+ MP4TagsSetEncodingTool(tags, version_string); |
375 |
-+#endif |
376 |
- free(version_string); |
377 |
- |
378 |
-+#if !HAVE_DECL_MP4TAGSALLOC |
379 |
- if (artist) MP4SetMetadataArtist(MP4hFile, artist); |
380 |
- if (writer) MP4SetMetadataWriter(MP4hFile, writer); |
381 |
- if (title) MP4SetMetadataName(MP4hFile, title); |
382 |
-@@ -923,8 +935,40 @@ int main(int argc, char *argv[]) |
383 |
- if (comment) MP4SetMetadataComment(MP4hFile, comment); |
384 |
- if (artSize) { |
385 |
- MP4SetMetadataCoverArt(MP4hFile, art, artSize); |
386 |
-+#else |
387 |
-+ if (artist) MP4TagsSetArtist(tags, artist); |
388 |
-+ if (writer) MP4TagsSetComposer(tags, writer); |
389 |
-+ if (title) MP4TagsSetName(tags, title); |
390 |
-+ if (album) MP4TagsSetAlbum(tags, album); |
391 |
-+ if (trackno > 0) { |
392 |
-+ MP4TagTrack tt; |
393 |
-+ tt.index = trackno; |
394 |
-+ tt.total = ntracks; |
395 |
-+ MP4TagsSetTrack(tags, &tt); |
396 |
-+ } |
397 |
-+ if (discno > 0) { |
398 |
-+ MP4TagDisk td; |
399 |
-+ td.index = discno; |
400 |
-+ td.total = ndiscs; |
401 |
-+ MP4TagsSetDisk(tags, &td); |
402 |
-+ } |
403 |
-+ if (compilation) MP4TagsSetCompilation(tags, compilation); |
404 |
-+ if (year) MP4TagsSetReleaseDate(tags, year); |
405 |
-+ if (genre) MP4TagsSetGenre(tags, genre); |
406 |
-+ if (comment) MP4TagsSetComments(tags, comment); |
407 |
-+ if (artSize) { |
408 |
-+ MP4TagArtwork mp4art; |
409 |
-+ mp4art.data = art; |
410 |
-+ mp4art.size = artSize; |
411 |
-+ mp4art.type = MP4_ART_UNDEFINED; // delegate typing to libmp4v2 |
412 |
-+ MP4TagsAddArtwork( tags, &mp4art ); |
413 |
-+#endif |
414 |
- free(art); |
415 |
- } |
416 |
-+#if HAVE_DECL_MP4TAGSALLOC |
417 |
-+ MP4TagsStore( tags, MP4hFile ); |
418 |
-+ MP4TagsFree( tags ); |
419 |
-+#endif |
420 |
- } |
421 |
- else |
422 |
- { |
423 |
-@@ -1141,11 +1185,19 @@ int main(int argc, char *argv[]) |
424 |
- /* clean up */ |
425 |
- if (container == MP4_CONTAINER) |
426 |
- { |
427 |
-+#ifdef MP4_CLOSE_DO_NOT_COMPUTE_BITRATE /* r479 fix */ |
428 |
-+ MP4Close(MP4hFile, 0); |
429 |
-+#else |
430 |
- MP4Close(MP4hFile); |
431 |
-+#endif |
432 |
- if (optimizeFlag == 1) |
433 |
- { |
434 |
- fprintf(stderr, "\n\nMP4 format optimization... "); |
435 |
-+#ifdef MP4_DETAILS_ERROR /* r453 fix */ |
436 |
- MP4Optimize(aacFileName, NULL, 0); |
437 |
-+#else |
438 |
-+ MP4Optimize(aacFileName, NULL); |
439 |
-+#endif |
440 |
- fprintf(stderr, "Done!"); |
441 |
- } |
442 |
- } else |