$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;