diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-07 11:03:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-07 11:03:14 +0100 |
commit | 957235cf19a691360c720f7913672adda4258ed0 (patch) | |
tree | 812bba7928f4293ead05a7ee9c1ac39c5ef9f12e /media-libs/faac | |
parent | 62f67115b5c46134c34f88f4b1cbdacc19384c0a (diff) |
gentoo resync : 07.10.2018
Diffstat (limited to 'media-libs/faac')
-rw-r--r-- | media-libs/faac/Manifest | 10 | ||||
-rw-r--r-- | media-libs/faac/faac-1.28-r4.ebuild | 59 | ||||
-rw-r--r-- | media-libs/faac/faac-1.29.8.3.ebuild | 45 | ||||
-rw-r--r-- | media-libs/faac/faac-1.29.9.2.ebuild | 10 | ||||
-rw-r--r-- | media-libs/faac/files/faac-1.28-altivec.patch | 40 | ||||
-rw-r--r-- | media-libs/faac/files/faac-1.28-external-libmp4v2.patch | 47 | ||||
-rw-r--r-- | media-libs/faac/files/faac-1.28-inttypes.patch | 41 | ||||
-rw-r--r-- | media-libs/faac/files/faac-1.28-libmp4v2_r479_compat.patch | 138 |
8 files changed, 6 insertions, 384 deletions
diff --git a/media-libs/faac/Manifest b/media-libs/faac/Manifest index 05e36c38f705..25e4448b43d8 100644 --- a/media-libs/faac/Manifest +++ b/media-libs/faac/Manifest @@ -1,11 +1,3 @@ -AUX faac-1.28-altivec.patch 964 BLAKE2B a8724e77e293694e5792c6dd3932bdc5f2afcfcf2384fa6dc05baa4a655217746935c52645db9e83add7cffe1aee25dafdfb0b5873a1df30cb81546771a47841 SHA512 a2a9a8f0b4ee1bca3f8c22286d64ddac2adf7e08b926536de8a72d84cdf1e2f04bd1b7f79aa625eb9b8772d22ac536a665378cc16836f2a0366ff70d29f3b2ef -AUX faac-1.28-external-libmp4v2.patch 1766 BLAKE2B b2ca7b8d17f3330bb3532acdf82ce9e2196db88991fec79ddd3bacc46ca30db476ae4e04f8f043b070aa2719087b5ab70334a075223816fabe9419f2540ec4c1 SHA512 aa1ad9a486b21c7528522ad9834d928087b463ceaef2e0f710fae70438661b5e2f285c72d7d82926ea90a7f6b3d452d0978cfcc84d06685e534e325e4edd3ad9 -AUX faac-1.28-inttypes.patch 1392 BLAKE2B a80ed6b0308ebdf29f4a62cb4a0cdcfa46978a79b595641b87260d51246f39c2232a9e72fc3726ec611852cd7cb371d2b3bd90acfea7b525c8a73bbcc027aaa0 SHA512 38262b7103cd61cb718e13cd29fe8fb2d416e2a291bdd248b882ec983274c4d16f5c443c5b13eba3aa4efbfb425441bb4c2658434f7718a3e521cdd9ec6cfe4c -AUX faac-1.28-libmp4v2_r479_compat.patch 4741 BLAKE2B e903d6f253c4bc66388d2af6b59860e60f89f0b7e35382bb2c4889be9e80fad1bc94954133bea251740d258c90971d21f0ed87c57c28dbbf7a598bc735a7f23f SHA512 7b79664fbd912e069b2c0ce49f97a29db03ed3f339bdf6ef5a4cc668c585a56fbb900b6cf40c014ad40f5e559aa048a9340aab30d393420630c433569393fb5b -DIST faac-1.28.tar.gz 678891 BLAKE2B c5d173649f3df77af7e9856150c52e3edd4dd6bac9c4d66463fa846edab1df4d209113946658820af6413abcd62a7a1101ad30366fc6cc07541c66f9cc7746ba SHA512 0ef721ad28835e95cad41afc0cb6130e1ebb634cb6dd4b40f649bc2269b7bb5bf2887f6d8f023c74628d521f8bdf55b4dd070f972ecff162a5fe0384e026235b -DIST faac-1.29.8.3.tar.gz 483404 BLAKE2B b5301fe63da7a059d0d4cf298107585295a3f385262c0c7715f5aa252a7400288b5be85cf26ea1ccf43e017c0f00fbf6942a91b903637660843701e1a28a6799 SHA512 2f17d87245c5cdb1ea37f21fb67f5a239f24133bb863bd635bb1f223d8d54c13d23ad43e93954a89361109c39b01e3b506ee791ffdf52741f76feb8bd1ed316c DIST faac-1.29.9.2.tar.gz 483826 BLAKE2B f845e75ec640f2a6ac41ad10dfdf1dbc6a6ddef3cb8cc3fe63450515f888343126cb2ec1df4c4eaaefed3d7d5d56249078f14363fcb9d9484228e9b1754a8b99 SHA512 71aaf060d087e866700a3a7c7d447e85709f65709e148610c4b34f5a3e095fa4a5c19f49450610949fd7db12345422b8a116a1d061899c127ad9a1bc30e79c7c -EBUILD faac-1.28-r4.ebuild 1587 BLAKE2B 177ab6d68bc3565cc7114d40af48c3c15fd6df223d104f4e657782947e970c86337e177910a582095fa3696dd5752684c9365e948aeaca75ef01ee78708b8482 SHA512 40f3b88d7a797cddafef3ee698c5a1442deeef525a14365407a3a7c6b93f9c0e3ea7b88ce5716a939d0dfeba0f69aae977e670299f07901660ee2946f3e32a93 -EBUILD faac-1.29.8.3.ebuild 1143 BLAKE2B 69f410d878a122a34370885786b1c4c842e96087afefb93205ebc6fcefef071932b9a5421dd13307146a13723e00fc4893ec2ca98f82d7021b9c1b620d55a4f1 SHA512 2c9f0d2767acdba0a5a99e19e741816fd49b01b16e4e49c13a910ea53171f84b165fa53219516fac9b661577a9616debbbd6885713a184dca424ee3ff23339b6 -EBUILD faac-1.29.9.2.ebuild 1136 BLAKE2B 36b0ae3627754afe4b355d619ea315fe9bf95df789ef6b64e02a14b4b59e881ab58bc6b7c9d9223e503ac39edea0ad6b3800da9acb1c3f32a3c3689eecf4d017 SHA512 613fc55959708b4bee112e36ae4338ee0ab5302be35618544aa66353f27b3d2fdb36fb105cc6d244cdecdd8cb92bba7947b86b6f624a9a5439e80a45f0d7e60e +EBUILD faac-1.29.9.2.ebuild 1109 BLAKE2B e7f4ca189087218d7bfb6add73f34413e6e0e94a9ebe225c180067fe29eebe478c7ef70a3d1bebdfbb72d6fef57238d0d6aa3bd1fd3d85554be0d48fa4bd93e6 SHA512 cc45535b12b7cf91874b73428691bd0045b7a9cc53fde222094a9a2eb534213154d29d222750e743796fbb05bf0a7cab9ba1a0ef602b077c57b7ca8065a2727c MISC metadata.xml 327 BLAKE2B 3c3eabbf763b0f521edb87c8d91f43a9e64c22c2ef6b86d4b95b997208a5d575f55575cc97d2c2caf3b759cbfbba7ce91377cba0121dca9f7b1a18cdab7e0162 SHA512 a323b91cffc6e960e52f3aac94763767ba428361b736e635ddc6eaee7dab9bacc36cee8bbd38c4887f3243f3f060707f3533b1c4e4be49d14ba1f602e7bf6f80 diff --git a/media-libs/faac/faac-1.28-r4.ebuild b/media-libs/faac/faac-1.28-r4.ebuild deleted file mode 100644 index 4196ae0cfde3..000000000000 --- a/media-libs/faac/faac-1.28-r4.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -# eutils for einstalldocs -inherit autotools epatch epunt-cxx eutils ltprune multilib-minimal - -DESCRIPTION="Free MPEG-4 audio codecs by AudioCoding.com" -HOMEPAGE="http://www.audiocoding.com" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2.1 MPEG-4" -SLOT="0" -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" -IUSE="static-libs" - -RDEPEND="media-libs/libmp4v2:0=" -DEPEND="${RDEPEND}" -DOCS=( AUTHORS ChangeLog NEWS README TODO ) - -src_prepare() { - epatch \ - "${FILESDIR}"/${P}-external-libmp4v2.patch \ - "${FILESDIR}"/${P}-altivec.patch \ - "${FILESDIR}"/${P}-libmp4v2_r479_compat.patch \ - "${FILESDIR}"/${P}-inttypes.patch - - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #466984 - - eautoreconf - epunt_cxx -} - -multilib_src_configure() { - local myconf - # only used for the fronted we need only for the default ABI. - [ "${ABI}" != "${DEFAULT_ABI}" ] && myconf+=" --without-mp4v2" - - ECONF_SOURCE="${S}" econf \ - $(use_enable static-libs static) \ - ${myconf} - - # do not build the frontend for non default abis - if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then - sed -i -e 's/frontend//' Makefile || die - fi -} - -multilib_src_install() { - emake DESTDIR="${D}" install - prune_libtool_files -} - -multilib_src_install_all() { - einstalldocs - dohtml docs/*.html - insinto /usr/share/doc/${PF}/pdf - doins docs/libfaac.pdf -} diff --git a/media-libs/faac/faac-1.29.8.3.ebuild b/media-libs/faac/faac-1.29.8.3.ebuild deleted file mode 100644 index 384836d70d7c..000000000000 --- a/media-libs/faac/faac-1.29.8.3.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -# eutils for einstalldocs -inherit autotools epatch epunt-cxx eutils ltprune multilib-minimal - -DESCRIPTION="Free MPEG-4 audio codecs by AudioCoding.com" -HOMEPAGE="http://www.audiocoding.com" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2.1 MPEG-4" -SLOT="0" -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" -IUSE="static-libs" - -DEPEND="${RDEPEND}" -DOCS=( AUTHORS ChangeLog NEWS README TODO ) - -src_prepare() { - default - - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466984 - - eautoreconf - epunt_cxx -} - -multilib_src_configure() { - local myconf=( - $(use_enable static-libs static) - ) - - ECONF_SOURCE="${S}" econf ${myconf[@]} - - # do not build the frontend for non default abis - if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then - sed -i -e 's/frontend//' Makefile || die - fi -} - -multilib_src_install() { - emake DESTDIR="${D}" install - prune_libtool_files -} diff --git a/media-libs/faac/faac-1.29.9.2.ebuild b/media-libs/faac/faac-1.29.9.2.ebuild index 5a71c4c2055e..c5d4bb08d1de 100644 --- a/media-libs/faac/faac-1.29.9.2.ebuild +++ b/media-libs/faac/faac-1.29.9.2.ebuild @@ -2,16 +2,16 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -# eutils for einstalldocs -inherit autotools epatch epunt-cxx eutils ltprune multilib-minimal + +inherit autotools epunt-cxx multilib-minimal DESCRIPTION="Free MPEG-4 audio codecs by AudioCoding.com" -HOMEPAGE="http://www.audiocoding.com" +HOMEPAGE="https://www.audiocoding.com" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="LGPL-2.1 MPEG-4" SLOT="0" -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" +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" IUSE="static-libs" DEPEND="${RDEPEND}" @@ -41,5 +41,5 @@ multilib_src_configure() { multilib_src_install() { emake DESTDIR="${D}" install - prune_libtool_files + find "${D}" -name '*.la' -delete || die } diff --git a/media-libs/faac/files/faac-1.28-altivec.patch b/media-libs/faac/files/faac-1.28-altivec.patch deleted file mode 100644 index ae461efc30d3..000000000000 --- a/media-libs/faac/files/faac-1.28-altivec.patch +++ /dev/null @@ -1,40 +0,0 @@ -http://bugs.gentoo.org/306881 - ---- configure.in -+++ configure.in -@@ -33,7 +33,12 @@ - AC_CHECK_DECLS([MP4Create, MP4MetadataDelete], - AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes, - external_mp4v2=no, -lstdc++), -- external_mp4v2=no, [#include <mp4v2/mp4v2.h>]) -+ external_mp4v2=no, [ -+ #if defined(__ALTIVEC__) -+ #undef bool -+ #endif -+ #include <mp4v2/mp4v2.h> -+ ]) - - if test x$external_mp4v2 = xyes; then - AC_MSG_NOTICE([*** Building with external mp4v2 ***]) ---- frontend/main.c -+++ frontend/main.c -@@ -30,6 +30,9 @@ - #endif - - #ifdef HAVE_LIBMP4V2 -+#if defined(__ALTIVEC__) -+# undef bool -+#endif - # include <mp4v2/mp4v2.h> - #endif - ---- common/mp4v2/mpeg4ip.h -+++ common/mp4v2/mpeg4ip.h -@@ -123,7 +123,6 @@ - #ifdef __cplusplus - extern "C" { - #endif --char *strcasestr(const char *haystack, const char *needle); - #ifdef __cplusplus - } - #endif diff --git a/media-libs/faac/files/faac-1.28-external-libmp4v2.patch b/media-libs/faac/files/faac-1.28-external-libmp4v2.patch deleted file mode 100644 index 54a63347b87a..000000000000 --- a/media-libs/faac/files/faac-1.28-external-libmp4v2.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -ur faac-1.28.orig/configure.in faac-1.28/configure.in ---- faac-1.28.orig/configure.in 2009-02-05 02:55:38.000000000 +0200 -+++ faac-1.28/configure.in 2009-07-10 13:21:34.000000000 +0300 -@@ -28,14 +28,17 @@ - AC_CHECK_LIB(gnugetopt, getopt_long) - - AM_CONDITIONAL(WITH_MP4V2, false) -+AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, false) - - AC_CHECK_DECLS([MP4Create, MP4MetadataDelete], - AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes, - external_mp4v2=no, -lstdc++), -- external_mp4v2=no, [#include <mp4.h>]) -+ external_mp4v2=no, [#include <mp4v2/mp4v2.h>]) - - if test x$external_mp4v2 = xyes; then - AC_MSG_NOTICE([*** Building with external mp4v2 ***]) -+ MY_DEFINE(HAVE_LIBMP4V2) -+ AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, true) - else - if test x$WITHMP4V2 = xyes; then - AC_MSG_NOTICE([*** Building with internal mp4v2 ***]) -diff -ur faac-1.28.orig/frontend/main.c faac-1.28/frontend/main.c ---- faac-1.28.orig/frontend/main.c 2009-01-24 03:10:20.000000000 +0200 -+++ faac-1.28/frontend/main.c 2009-07-10 13:22:18.000000000 +0300 -@@ -30,7 +30,7 @@ - #endif - - #ifdef HAVE_LIBMP4V2 --# include <mp4.h> -+# include <mp4v2/mp4v2.h> - #endif - - #define DEFAULT_TNS 0 -diff -ur faac-1.28.orig/frontend/Makefile.am faac-1.28/frontend/Makefile.am ---- faac-1.28.orig/frontend/Makefile.am 2008-12-16 02:56:00.000000000 +0200 -+++ faac-1.28/frontend/Makefile.am 2009-07-10 13:21:55.000000000 +0300 -@@ -8,5 +8,9 @@ - LDADD = $(top_builddir)/libfaac/libfaac.la $(top_srcdir)/common/mp4v2/libmp4v2.a -lm -lstdc++ - else - INCLUDES = -I$(top_srcdir)/include -+if WITH_EXTERNAL_MP4V2 -+LDADD = $(top_builddir)/libfaac/libfaac.la -lm -lmp4v2 -+else - LDADD = $(top_builddir)/libfaac/libfaac.la -lm - endif -+endif diff --git a/media-libs/faac/files/faac-1.28-inttypes.patch b/media-libs/faac/files/faac-1.28-inttypes.patch deleted file mode 100644 index 09304fb60172..000000000000 --- a/media-libs/faac/files/faac-1.28-inttypes.patch +++ /dev/null @@ -1,41 +0,0 @@ -use standard integer types, not linux ones - ---- frontend/main.c -+++ frontend/main.c -@@ -440,13 +440,13 @@ - MP4TrackId MP4track = 0; - unsigned int ntracks = 0, trackno = 0; - unsigned int ndiscs = 0, discno = 0; -- u_int8_t compilation = 0; -+ uint8_t compilation = 0; - const char *artist = NULL, *title = NULL, *album = NULL, *year = NULL, - *genre = NULL, *comment = NULL, *writer = NULL; -- u_int8_t *art = NULL; -- u_int64_t artSize = 0; -- u_int64_t total_samples = 0; -- u_int64_t encoded_samples = 0; -+ uint8_t *art = NULL; -+ uint64_t artSize = 0; -+ uint64_t total_samples = 0; -+ uint64_t encoded_samples = 0; - unsigned int delay_samples; - unsigned int frameSize; - #endif -@@ -647,7 +647,7 @@ - FILE *artFile = fopen(optarg, "rb"); - - if(artFile) { -- u_int64_t r; -+ uint64_t r; - - fseek(artFile, 0, SEEK_END); - artSize = ftell(artFile); -@@ -1112,7 +1112,7 @@ - if (bytesWritten > 0) - { - #ifdef HAVE_LIBMP4V2 -- u_int64_t samples_left = total_samples - encoded_samples + delay_samples; -+ uint64_t samples_left = total_samples - encoded_samples + delay_samples; - MP4Duration dur = samples_left > frameSize ? frameSize : samples_left; - MP4Duration ofs = encoded_samples > 0 ? 0 : delay_samples; - 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 deleted file mode 100644 index 6aae0d7793e2..000000000000 --- a/media-libs/faac/files/faac-1.28-libmp4v2_r479_compat.patch +++ /dev/null @@ -1,138 +0,0 @@ -http://bugs.gentoo.org/397575 -https://sourceforge.net/tracker/?func=detail&aid=3476707&group_id=704&atid=100704 - ---- configure.in -+++ configure.in -@@ -33,8 +33,8 @@ AC_CHECK_LIB(gnugetopt, getopt_long) - AM_CONDITIONAL(WITH_MP4V2, false) - AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, false) - --AC_CHECK_DECLS([MP4Create, MP4MetadataDelete], -- AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes, -+AC_CHECK_DECLS([MP4Create], -+ AC_CHECK_LIB(mp4v2, MP4Create, external_mp4v2=yes, - external_mp4v2=no, -lstdc++), - external_mp4v2=no, [#include <mp4v2/mp4v2.h>]) - -@@ -42,6 +42,7 @@ if test x$external_mp4v2 = xyes; then - AC_MSG_NOTICE([*** Building with external mp4v2 ***]) - MY_DEFINE(HAVE_EXTERNAL_LIBMP4V2) - AM_CONDITIONAL(WITH_EXTERNAL_MP4V2, true) -+ AC_CHECK_DECLS([MP4TagsAlloc], [], [], [#include <mp4v2/mp4v2.h>]) - else - if test x$WITHMP4V2 = xyes; then - AC_MSG_NOTICE([*** Building with internal mp4v2 ***]) ---- frontend/main.c -+++ frontend/main.c -@@ -873,8 +873,12 @@ int main(int argc, char *argv[]) - if (!faacEncSetConfiguration(hEncoder, myFormat)) { - fprintf(stderr, "Unsupported output format!\n"); - #ifdef HAVE_LIBMP4V2 -+#ifdef MP4_CLOSE_DO_NOT_COMPUTE_BITRATE /* r479 fix */ -+ if (container == MP4_CONTAINER) MP4Close(MP4hFile, 0); -+#else - if (container == MP4_CONTAINER) MP4Close(MP4hFile); - #endif -+#endif - return 1; - } - -@@ -885,12 +889,10 @@ int main(int argc, char *argv[]) - unsigned long ASCLength = 0; - char *version_string; - --#ifdef MP4_CREATE_EXTENSIBLE_FORMAT -- /* hack to compile against libmp4v2 >= 1.0RC3 -- * why is there no version identifier in mp4.h? */ -+#ifdef MP4_DETAILS_ERROR /* r453 fix */ - MP4hFile = MP4Create(aacFileName, MP4_DETAILS_ERROR, 0); - #else -- MP4hFile = MP4Create(aacFileName, MP4_DETAILS_ERROR, 0, 0); -+ MP4hFile = MP4Create(aacFileName, 0); - #endif - if (!MP4_IS_VALID_FILE_HANDLE(MP4hFile)) { - fprintf(stderr, "Couldn't create output file %s\n", aacFileName); -@@ -905,12 +907,22 @@ int main(int argc, char *argv[]) - free(ASC); - - /* set metadata */ -+#if HAVE_DECL_MP4TAGSALLOC -+ const MP4Tags* tags; -+ tags = MP4TagsAlloc(); -+ MP4TagsFetch( tags, MP4hFile ); -+#endif - version_string = malloc(strlen(faac_id_string) + 6); - strcpy(version_string, "FAAC "); - strcpy(version_string + 5, faac_id_string); -+#if !HAVE_DECL_MP4TAGSALLOC - MP4SetMetadataTool(MP4hFile, version_string); -+#else -+ MP4TagsSetEncodingTool(tags, version_string); -+#endif - free(version_string); - -+#if !HAVE_DECL_MP4TAGSALLOC - if (artist) MP4SetMetadataArtist(MP4hFile, artist); - if (writer) MP4SetMetadataWriter(MP4hFile, writer); - if (title) MP4SetMetadataName(MP4hFile, title); -@@ -923,8 +935,40 @@ int main(int argc, char *argv[]) - if (comment) MP4SetMetadataComment(MP4hFile, comment); - if (artSize) { - MP4SetMetadataCoverArt(MP4hFile, art, artSize); -+#else -+ if (artist) MP4TagsSetArtist(tags, artist); -+ if (writer) MP4TagsSetComposer(tags, writer); -+ if (title) MP4TagsSetName(tags, title); -+ if (album) MP4TagsSetAlbum(tags, album); -+ if (trackno > 0) { -+ MP4TagTrack tt; -+ tt.index = trackno; -+ tt.total = ntracks; -+ MP4TagsSetTrack(tags, &tt); -+ } -+ if (discno > 0) { -+ MP4TagDisk td; -+ td.index = discno; -+ td.total = ndiscs; -+ MP4TagsSetDisk(tags, &td); -+ } -+ if (compilation) MP4TagsSetCompilation(tags, compilation); -+ if (year) MP4TagsSetReleaseDate(tags, year); -+ if (genre) MP4TagsSetGenre(tags, genre); -+ if (comment) MP4TagsSetComments(tags, comment); -+ if (artSize) { -+ MP4TagArtwork mp4art; -+ mp4art.data = art; -+ mp4art.size = artSize; -+ mp4art.type = MP4_ART_UNDEFINED; // delegate typing to libmp4v2 -+ MP4TagsAddArtwork( tags, &mp4art ); -+#endif - free(art); - } -+#if HAVE_DECL_MP4TAGSALLOC -+ MP4TagsStore( tags, MP4hFile ); -+ MP4TagsFree( tags ); -+#endif - } - else - { -@@ -1141,11 +1185,19 @@ int main(int argc, char *argv[]) - /* clean up */ - if (container == MP4_CONTAINER) - { -+#ifdef MP4_CLOSE_DO_NOT_COMPUTE_BITRATE /* r479 fix */ -+ MP4Close(MP4hFile, 0); -+#else - MP4Close(MP4hFile); -+#endif - if (optimizeFlag == 1) - { - fprintf(stderr, "\n\nMP4 format optimization... "); -+#ifdef MP4_DETAILS_ERROR /* r453 fix */ - MP4Optimize(aacFileName, NULL, 0); -+#else -+ MP4Optimize(aacFileName, NULL); -+#endif - fprintf(stderr, "Done!"); - } - } else |