commit:     c743ee4e6e6efa0e6422da4ec756bd6f0d86d740
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 13 21:47:58 2020 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Apr 14 08:39:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c743ee4e

media-sound/xmms2: Patch around faad plugin breakage since faad 2.9.0

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 media-sound/xmms2/files/xmms2-0.8_p20161122-faad.patch | 18 ++++++++++++++++++
 ...0161122-r6.ebuild => xmms2-0.8_p20161122-r7.ebuild} |  3 +++
 2 files changed, 21 insertions(+)

diff --git a/media-sound/xmms2/files/xmms2-0.8_p20161122-faad.patch 
b/media-sound/xmms2/files/xmms2-0.8_p20161122-faad.patch
new file mode 100644
index 00000000000..00aa5d77082
--- /dev/null
+++ b/media-sound/xmms2/files/xmms2-0.8_p20161122-faad.patch
@@ -0,0 +1,18 @@
+This line has stopped working since security fixes in the faad 2.9.0
+release. XMMS2 upstream were informed via IRC but have yet to act on
+it. I've run XMMS2 with this patch for months without issue.
+
+-- Chewi
+
+diff --git a/src/plugins/faad/faad.c b/src/plugins/faad/faad.c
+index 50835d27..7074e1b5 100644
+--- a/src/plugins/faad/faad.c
++++ b/src/plugins/faad/faad.c
+@@ -242,7 +242,6 @@ xmms_faad_init (xmms_xform_t *xform)
+        * and durations calculations... So we cheat and tell libfaad2 we're 
feeding
+        * it frame 1.
+        */
+-      NeAACDecPostSeekReset (data->decoder, 1);
+ 
+       /* FIXME: Because for HE AAC files some versions of libfaad return the 
wrong
+        * samplerate in init, we have to do one read and let it decide the real

diff --git a/media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild 
b/media-sound/xmms2/xmms2-0.8_p20161122-r7.ebuild
similarity index 99%
rename from media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild
rename to media-sound/xmms2/xmms2-0.8_p20161122-r7.ebuild
index 69165406052..88101be578c 100644
--- a/media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild
+++ b/media-sound/xmms2/xmms2-0.8_p20161122-r7.ebuild
@@ -114,6 +114,9 @@ PATCHES=(
 
        # gcc-10 stopped putting globals into common section
        "${FILESDIR}/${P}"-gcc-10.patch
+
+       # fix required since faad 2.9.0
+       "${FILESDIR}/${P}"-faad.patch
 )
 
 pkg_setup() {

Reply via email to