diff options
author | James Almer <jamrial@gmail.com> | 2017-09-26 21:58:40 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-26 22:02:40 +0300 |
commit | 318778de9ebec276cb9dfc65509231ca56590d13 (patch) | |
tree | 795c3dc73c18c00f7ce2b09f91184e09d529d332 /libavcodec/opus_silk.c | |
parent | 2508e606fba86f2e460eebb045e29e1f069a4d72 (diff) | |
parent | fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3 (diff) |
Merge commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3'
* commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3':
Mark some arrays that never change as const.
Merged-by: James Almer <jamrial@gmail.com>
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 dbf6756864..3c9c849c21 100644 --- a/libavcodec/opus_silk.c +++ b/libavcodec/opus_silk.c @@ -599,7 +599,7 @@ static void silk_decode_frame(SilkContext *s, OpusRangeCoder *rc, if (lag_absolute) { /* primary lag is coded absolute */ int highbits, lowbits; - static const uint16_t *model[] = { + static const uint16_t * const model[] = { ff_silk_model_pitch_lowbits_nb, ff_silk_model_pitch_lowbits_mb, ff_silk_model_pitch_lowbits_wb }; @@ -633,11 +633,11 @@ static void silk_decode_frame(SilkContext *s, OpusRangeCoder *rc, ltpfilter = ff_opus_rc_dec_cdf(rc, ff_silk_model_ltp_filter); for (i = 0; i < s->subframes; i++) { int index, j; - static const uint16_t *filter_sel[] = { + static const uint16_t * const filter_sel[] = { ff_silk_model_ltp_filter0_sel, ff_silk_model_ltp_filter1_sel, ff_silk_model_ltp_filter2_sel }; - static const int8_t (*filter_taps[])[5] = { + static const int8_t (* const filter_taps[])[5] = { ff_silk_ltp_filter0_taps, ff_silk_ltp_filter1_taps, ff_silk_ltp_filter2_taps }; index = ff_opus_rc_dec_cdf(rc, filter_sel[ltpfilter]); |