Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2012-08-29 17:43:23 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-08-29 17:43:23 +0400
commit79a6f4d2ada9d2325acb2be6a34c71920bf45992 (patch)
treec52c9747cf484cff94c0127620c7c84bd7d5d094
parentf6c26e00005127bc6127618e8367fa815d755032 (diff)
Makes two static tables const
-rw-r--r--celt/celt.c2
-rw-r--r--silk/fixed/apply_sine_window_FIX.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/celt/celt.c b/celt/celt.c
index 8164269e..adb9737c 100644
--- a/celt/celt.c
+++ b/celt/celt.c
@@ -2841,7 +2841,7 @@ bad_request:
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",
diff --git a/silk/fixed/apply_sine_window_FIX.c b/silk/fixed/apply_sine_window_FIX.c
index d996fa08..897fdc30 100644
--- a/silk/fixed/apply_sine_window_FIX.c
+++ b/silk/fixed/apply_sine_window_FIX.c
@@ -41,7 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
/* 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,