1 |
flameeyes 08/04/20 21:43:30 |
2 |
|
3 |
Added: wavpack-4.41.0-constant.patch |
4 |
Log: |
5 |
Fix building with GCC 4.3, thanks to Peter Alfredsen in bug #217828. Also add a new revision with a patch to mark more stuff constant in a new revision. |
6 |
(Portage version: 2.1.5_rc5) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-sound/wavpack/files/wavpack-4.41.0-constant.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/wavpack/files/wavpack-4.41.0-constant.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/wavpack/files/wavpack-4.41.0-constant.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: wavpack-4.41.0-constant.patch |
15 |
=================================================================== |
16 |
Index: wavpack-4.41.0/src/pack.c |
17 |
=================================================================== |
18 |
--- wavpack-4.41.0.orig/src/pack.c |
19 |
+++ wavpack-4.41.0/src/pack.c |
20 |
@@ -38,7 +38,7 @@ int32_t dump_alloc (void); |
21 |
// 17 & 18 are special functions using the previous 2 samples, and negative |
22 |
// values indicate cross channel decorrelation (in stereo only). |
23 |
|
24 |
-static WavpackDecorrSpec fast_specs [] = { |
25 |
+static const WavpackDecorrSpec fast_specs [] = { |
26 |
{ 1, 2,18,17 }, // 0 |
27 |
{ 1, 1,17,17 }, // 1 |
28 |
{ 0, 2,18,17 }, // 2 |
29 |
@@ -297,7 +297,7 @@ static WavpackDecorrSpec fast_specs [] = |
30 |
{ 0, 2,18,17 }, // 255 |
31 |
}; |
32 |
|
33 |
-static WavpackDecorrSpec default_specs [] = { |
34 |
+static const WavpackDecorrSpec default_specs [] = { |
35 |
{ 1, 2,18,18, 2,17, 3 }, // 0 |
36 |
{ 0, 2,18,17,-1, 3, 2 }, // 1 |
37 |
{ 1, 1,17,18,18,-2, 2 }, // 2 |
38 |
@@ -556,7 +556,7 @@ static WavpackDecorrSpec default_specs [ |
39 |
{ 0, 2,18,18,-2,18, 2 }, // 255 |
40 |
}; |
41 |
|
42 |
-static WavpackDecorrSpec high_specs [] = { |
43 |
+static const WavpackDecorrSpec high_specs [] = { |
44 |
{ 1, 2,18,18,18,-2, 2, 3, 5,-1,17, 4 }, // 0 |
45 |
{ 0, 1,18,17,-2, 2,18, 3, 7, 2, 5, 4 }, // 1 |
46 |
{ 1, 2, 1,18, 3, 6,-2,18, 2, 3, 4, 5 }, // 2 |
47 |
@@ -815,7 +815,7 @@ static WavpackDecorrSpec high_specs [] = |
48 |
{ 0, 1,-1,18,18, 2,18, 3, 5,18, 2, 8 }, // 255 |
49 |
}; |
50 |
|
51 |
-static WavpackDecorrSpec very_high_specs [] = { |
52 |
+static const WavpackDecorrSpec very_high_specs [] = { |
53 |
{ 1, 2,18,18, 2, 3,-2,18, 2, 4, 7, 5, 3, 6, 8,-1,18, 2 }, // 0 |
54 |
{ 0, 1,18,18,-1,18, 2, 3, 4, 6, 5, 7,18,-3, 8, 2,-1, 3 }, // 1 |
55 |
{ 1, 2, 1,18,-2, 4,18, 2, 3, 6,-1, 7, 5,-2,18, 8, 2, 4 }, // 2 |
56 |
Index: wavpack-4.41.0/src/wputils.c |
57 |
=================================================================== |
58 |
--- wavpack-4.41.0.orig/src/wputils.c |
59 |
+++ wavpack-4.41.0/src/wputils.c |
60 |
@@ -126,7 +126,7 @@ static int32_t write_bytes (void *id, vo |
61 |
return (int32_t) fwrite (data, 1, bcount, (FILE*) id); |
62 |
} |
63 |
|
64 |
-static WavpackStreamReader freader = { |
65 |
+static const WavpackStreamReader freader = { |
66 |
read_bytes, get_pos, set_pos_abs, set_pos_rel, push_back_byte, get_length, can_seek, |
67 |
write_bytes |
68 |
}; |
69 |
|
70 |
|
71 |
|
72 |
-- |
73 |
gentoo-commits@l.g.o mailing list |