ref: 79a6f4d2ada9d2325acb2be6a34c71920bf45992
parent: f6c26e00005127bc6127618e8367fa815d755032
author: Jean-Marc Valin <[email protected]>
date: Wed Aug 29 05:43:23 EDT 2012
Makes two static tables const
--- a/celt/celt.c
+++ b/celt/celt.c
@@ -2841,7 +2841,7 @@
const char *opus_strerror(int error)
{
- static const char *error_strings[8] = {
+ static const char * const error_strings[8] = {
"success",
"invalid argument",
"buffer too small",
--- a/silk/fixed/apply_sine_window_FIX.c
+++ b/silk/fixed/apply_sine_window_FIX.c
@@ -41,7 +41,7 @@
/* Matlab code for table:
for k=16:9*4:16+2*9*4, fprintf(' %7.d,', -round(65536*pi ./ (k:4:k+8*4))); fprintf('\n'); end
*/
-static opus_int16 freq_table_Q16[ 27 ] = {
+static const opus_int16 freq_table_Q16[ 27 ] = {
12111, 9804, 8235, 7100, 6239, 5565, 5022, 4575, 4202,
3885, 3612, 3375, 3167, 2984, 2820, 2674, 2542, 2422,
2313, 2214, 2123, 2038, 1961, 1889, 1822, 1760, 1702,