diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-11-11 17:38:43 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-05-05 10:48:34 +0200 |
commit | 5afb94c817abffad030c6b94d7003dca8aace3d5 (patch) | |
tree | 517222058bab9a1b2ba41abd4a38280388dbf57a /libavcodec/opus_silk.c | |
parent | 1f1ad8ace040a08edc2646ff638ca42a8828779f (diff) | |
download | ffmpeg-5afb94c817abffad030c6b94d7003dca8aace3d5.tar.gz |
Mark read-only tables as static
Diffstat (limited to 'libavcodec/opus_silk.c')
-rw-r--r-- | libavcodec/opus_silk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/opus_silk.c b/libavcodec/opus_silk.c index 583801d65c..d83fb373c6 100644 --- a/libavcodec/opus_silk.c +++ b/libavcodec/opus_silk.c @@ -1323,7 +1323,7 @@ static void silk_decode_frame(SilkContext *s, OpusRangeCoder *rc, if (lag_absolute) { /* primary lag is coded absolute */ int highbits, lowbits; - const uint16_t *model[] = { + static const uint16_t *model[] = { silk_model_pitch_lowbits_nb, silk_model_pitch_lowbits_mb, silk_model_pitch_lowbits_wb }; @@ -1357,11 +1357,11 @@ static void silk_decode_frame(SilkContext *s, OpusRangeCoder *rc, ltpfilter = opus_rc_getsymbol(rc, silk_model_ltp_filter); for (i = 0; i < s->subframes; i++) { int index, j; - const uint16_t *filter_sel[] = { + static const uint16_t *filter_sel[] = { silk_model_ltp_filter0_sel, silk_model_ltp_filter1_sel, silk_model_ltp_filter2_sel }; - const int8_t (*filter_taps[])[5] = { + static const int8_t (*filter_taps[])[5] = { silk_ltp_filter0_taps, silk_ltp_filter1_taps, silk_ltp_filter2_taps }; index = opus_rc_getsymbol(rc, filter_sel[ltpfilter]); |