summaryrefslogtreecommitdiff
path: root/audio/splay/patches/patch-ah
blob: c767617369520749ad8ca05a2fa8e54517607241 (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
$NetBSD: patch-ah,v 1.3 1999/03/28 20:08:09 rh Exp $

--- mpegsound/mpeglayer3.cc.orig	Fri Mar  6 18:43:55 1998
+++ mpegsound/mpeglayer3.cc	Sun Mar 28 19:41:06 1999
@@ -46,17 +46,16 @@
 {
   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);
   bitindex+=bits;