summaryrefslogtreecommitdiff
path: root/audio/splay/patches/patch-ad
blob: 17105aba136605dcfad2ab3783b5ae3fe5909337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-ad,v 1.3 1999/03/28 20:08:09 rh Exp $

--- mpegsound/mpegsound_locals.h.orig	Fri Mar  6 18:43:55 1998
+++ mpegsound/mpegsound_locals.h	Sun Mar 28 19:32:46 1999
@@ -27,7 +27,7 @@
     a=(((unsigned char)buffer[offset])<<8) | ((unsigned char)buffer[offset+1]);
   }
 #else
-  a=((unsigned short *)(buffer+((bixindex>>3))));
+  a=((unsigned short *)(buffer+offset));
 #endif
 
   a<<=(bitindex&7);
@@ -39,15 +39,15 @@
 {
   register unsigned short a;
 
-#ifndef WORDS_BIGENDIAN
   {
+#ifndef WORDS_BIGENDIAN
     int offset=bitindex>>3;
 
     a=(((unsigned char)buffer[offset])<<8) | ((unsigned char)buffer[offset+1]);
-  }
 #else
-  a=((unsigned short *)(buffer+((bixindex>>3))));
+    a=((unsigned short *)(buffer+offset));
 #endif
+  }
 
   a<<=(bitindex&7);
   bitindex+=8;