Added
Link Here
|
0 |
- |
1 |
diff -ru Maaate-0.3.1.orig/src/mpeg/MPEGfile.cc Maaate-0.3.1/src/mpeg/MPEGfile.cc |
|
|
2 |
--- src/mpeg/MPEGfile.cc 2023-06-26 14:31:17.838303000 +0200 |
3 |
+++ src/mpeg/MPEGfile.cc 2023-06-26 14:32:19.227754000 +0200 |
4 |
@@ -495,7 +495,7 @@ |
5 |
|
6 |
#define MAXSEARCH 2048 |
7 |
// read 4 bytes into header bitfield |
8 |
- register unsigned short buf=0; |
9 |
+ unsigned short buf=0; |
10 |
|
11 |
// read over initial junk to find header; give up after 2048 bytes |
12 |
int i=-2; |
13 |
@@ -503,7 +503,7 @@ |
14 |
while (((buf & 0xfff0) != 0xfff0) && (i<MAXSEARCH)) { |
15 |
if ((buf & 0x00ff) == 0x00ff) { |
16 |
// only need to read next byte to try and get sync word |
17 |
- register unsigned char buf2=0; |
18 |
+ unsigned char buf2=0; |
19 |
if (fread(&buf2, sizeof (unsigned char), 1, fd) != 1) { |
20 |
return false; |
21 |
} |
22 |
diff -ru Maaate-0.3.1.orig/src/mpeg/allLayers.cc Maaate-0.3.1/src/mpeg/allLayers.cc |
23 |
--- src/mpeg/allLayers.cc 2023-06-26 14:31:17.836537000 +0200 |
24 |
+++ src/mpeg/allLayers.cc 2023-06-26 14:31:40.156675000 +0200 |
25 |
@@ -246,7 +246,7 @@ |
26 |
int ch, |
27 |
short samples[SBLIMIT]) |
28 |
{ |
29 |
- register double *bufOffsetPtr, sum; |
30 |
+ double *bufOffsetPtr, sum; |
31 |
static int init = 1; |
32 |
typedef double NN[64][SBLIMIT]; |
33 |
static NN *filter; |
34 |
@@ -254,14 +254,14 @@ |
35 |
static BB *buf; |
36 |
static int bufOffset[2] = {64,64}; |
37 |
// count # samples clipped |
38 |
- // register int clip = 0; |
39 |
-// register int offset; |
40 |
- register long foo; |
41 |
-// register double *filterp; |
42 |
-// register double *bandp; |
43 |
+ // int clip = 0; |
44 |
+// int offset; |
45 |
+ long foo; |
46 |
+// double *filterp; |
47 |
+// double *bandp; |
48 |
|
49 |
int i; |
50 |
- register double tmp; |
51 |
+ double tmp; |
52 |
double p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15; |
53 |
double pp0,pp1,pp2,pp3,pp4,pp5,pp6,pp7,pp8,pp9,pp10,pp11,pp12,pp13,pp14,pp15; |
54 |
|
55 |
diff -ru Maaate-0.3.1.orig/src/mpeg/layer2.cc Maaate-0.3.1/src/mpeg/layer2.cc |
56 |
--- src/mpeg/layer2.cc 2023-06-26 14:31:17.837389000 +0200 |
57 |
+++ src/mpeg/layer2.cc 2023-06-26 14:32:02.476148000 +0200 |
58 |
@@ -1381,7 +1381,7 @@ |
59 |
for (ss=0; ss<3; ss++) { |
60 |
if (allocation[ch][sub]) { |
61 |
int x = 0; |
62 |
- register double r; |
63 |
+ double r; |
64 |
|
65 |
// Locate MSB in the sample |
66 |
// u is set outside loop to hopefully speed up the loop |
67 |
@@ -1391,7 +1391,7 @@ |
68 |
|
69 |
// MSB inversion |
70 |
// read sample |
71 |
- register unsigned int samp |
72 |
+ unsigned int samp |
73 |
= samples[no][ch][ss][sub]; |
74 |
x = 1L << (x - 1); // for MSB test |
75 |
if ((samp & x)) { |
76 |
@@ -1404,7 +1404,7 @@ |
77 |
r += (double)(samp & (x - 1)) / (double)x; |
78 |
|
79 |
// calculate index |
80 |
- register unsigned int indx |
81 |
+ unsigned int indx |
82 |
= alloctable[sub][allocation[ch][sub]].quant; |
83 |
|
84 |
// Dequantize the sample |