blob: 846e97524fa8703e8aa6033f984cba27c2884e3c (
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
|
$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)
|