summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-03-20 16:23:40 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-03-20 16:23:40 +0000
commit88deeee6e94ce090a9b73d60b21326815d5a8d3d (patch)
treefebc17d06d65f1a1d61eb4aada66e2eada4fc89e /media-plugins/xmms-mad/files
parentAdd new ebuild. (diff)
downloadhistorical-88deeee6e94ce090a9b73d60b21326815d5a8d3d.tar.gz
historical-88deeee6e94ce090a9b73d60b21326815d5a8d3d.tar.bz2
historical-88deeee6e94ce090a9b73d60b21326815d5a8d3d.zip
Added patch to fix detection of MP3 frame header. Submitted in bug #44838 by Eric Villani <caligari@libertysurf.fr>.
Diffstat (limited to 'media-plugins/xmms-mad/files')
-rw-r--r--media-plugins/xmms-mad/files/digest-xmms-mad-0.5.6-r1 (renamed from media-plugins/xmms-mad/files/digest-xmms-mad-0.5.6)0
-rw-r--r--media-plugins/xmms-mad/files/xmms-mad-0.5.6-mp3header.patch11
2 files changed, 11 insertions, 0 deletions
diff --git a/media-plugins/xmms-mad/files/digest-xmms-mad-0.5.6 b/media-plugins/xmms-mad/files/digest-xmms-mad-0.5.6-r1
index c1bdbe2dbe5d..c1bdbe2dbe5d 100644
--- a/media-plugins/xmms-mad/files/digest-xmms-mad-0.5.6
+++ b/media-plugins/xmms-mad/files/digest-xmms-mad-0.5.6-r1
diff --git a/media-plugins/xmms-mad/files/xmms-mad-0.5.6-mp3header.patch b/media-plugins/xmms-mad/files/xmms-mad-0.5.6-mp3header.patch
new file mode 100644
index 000000000000..e91abce38b66
--- /dev/null
+++ b/media-plugins/xmms-mad/files/xmms-mad-0.5.6-mp3header.patch
@@ -0,0 +1,11 @@
+--- src/xmms-mad.c 2003-12-28 16:18:40.000000000 +0100
++++ src/xmms-mad.c 2004-03-16 13:14:12.000000000 +0100
+@@ -95,7 +95,7 @@
+ if (fin >= 0 && read (fin, check, 4) == 4)
+ {
+ /* If first two bytes are a sync header or three bytes are "ID3" */
+- if ( (check[0] == 0xff && (check[1] & 0x70) == 0x70)
++ if ( (check[0] == 0xff && (check[1] & 0xE0) == 0xE0)
+ || memcmp (check, "ID3", 3) == 0)
+ {
+ rtn = 1;