media-sound/xmms2: Patch around faad plugin breakage since faad 2.9.0
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 13 Apr 2020 21:47:58 +0000 (22:47 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Tue, 14 Apr 2020 08:39:43 +0000 (09:39 +0100)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
media-sound/xmms2/files/xmms2-0.8_p20161122-faad.patch [new file with mode: 0644]
media-sound/xmms2/xmms2-0.8_p20161122-r7.ebuild [moved from media-sound/xmms2/xmms2-0.8_p20161122-r6.ebuild with 99% similarity]

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 (file)
index 0000000..00aa5d7
--- /dev/null
@@ -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
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 691654060525a188d536cf44bf29c8db1e7ab334..88101be578c0f22363b166fd29c3902239acb7b8 100644 (file)
@@ -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() {