summaryrefslogtreecommitdiff
path: root/audio/splay/patches/patch-ah
diff options
context:
space:
mode:
authorwiz <wiz>2002-08-05 17:39:16 +0000
committerwiz <wiz>2002-08-05 17:39:16 +0000
commitdbd656a35b9f1b56048032e625ac480fb18a7acc (patch)
tree06066904a10bb59ad4acfad9e771c4222dd2afaf /audio/splay/patches/patch-ah
parent09e0a115cfebbcd2f581a6aa2eb8aed169c6b522 (diff)
downloadpkgsrc-dbd656a35b9f1b56048032e625ac480fb18a7acc.tar.gz
Make splay work on big-endian platforms.
Patches from Martijn van Buul in pkg/15382, tested on macppc and i386.
Diffstat (limited to 'audio/splay/patches/patch-ah')
-rw-r--r--audio/splay/patches/patch-ah30
1 files changed, 0 insertions, 30 deletions
diff --git a/audio/splay/patches/patch-ah b/audio/splay/patches/patch-ah
deleted file mode 100644
index 846e97524fa..00000000000
--- a/audio/splay/patches/patch-ah
+++ /dev/null
@@ -1,30 +0,0 @@
-$NetBSD: patch-ah,v 1.4 2000/02/20 18:30:39 dmcmahill Exp $
-
---- mpegsound/mpeglayer3.cc.orig Fri Mar 6 12:43:55 1998
-+++ mpegsound/mpeglayer3.cc Sun Feb 20 10:48:43 2000
-@@ -47,15 +47,14 @@
- register unsigned short a;
-
--#ifndef WORDS_BIGENDIAN
- {
- // int offset=(bitindex>>3)&(WINDOWSIZE-1);
- int offset=bitindex>>3;
-
-+#ifndef WORDS_BIGENDIAN
- a=(((unsigned char)buffer[offset])<<8) | ((unsigned char)buffer[offset+1]);
-- }
- #else
-- // a=((unsigned short *)(buffer+((bixindex>>3)&(WINDOWSIZE-1))));
-- a=((unsigned short *)(buffer+((bixindex>>3))));
-+ a=(unsigned short)(buffer[offset]);
- #endif
-+ }
-
- a<<=(bitindex&7);
-@@ -770,5 +769,5 @@
- {
- const HUFFMANCODETABLE *h;
-- register end;
-+ register int end;
-
- if (i<region1Start)