diff options
author | James Almer <jamrial@gmail.com> | 2017-09-26 15:58:40 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-26 16:02:40 -0300 |
commit | 318778de9ebec276cb9dfc65509231ca56590d13 (patch) | |
tree | 795c3dc73c18c00f7ce2b09f91184e09d529d332 /libavcodec/aacenc.h | |
parent | 2508e606fba86f2e460eebb045e29e1f069a4d72 (diff) | |
parent | fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3 (diff) | |
download | ffmpeg-318778de9ebec276cb9dfc65509231ca56590d13.tar.gz |
Merge commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3'
* commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3':
Mark some arrays that never change as const.
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/aacenc.h')
-rw-r--r-- | libavcodec/aacenc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h index 9d244fd1f5..ea2d3b9628 100644 --- a/libavcodec/aacenc.h +++ b/libavcodec/aacenc.h @@ -78,7 +78,7 @@ typedef struct AACCoefficientsEncoder { void (*search_for_pred)(struct AACEncContext *s, SingleChannelElement *sce); } AACCoefficientsEncoder; -extern AACCoefficientsEncoder ff_aac_coders[]; +extern const AACCoefficientsEncoder ff_aac_coders[]; typedef struct AACQuantizeBandCostCacheEntry { float rd; @@ -110,7 +110,7 @@ typedef struct AACEncContext { ChannelElement *cpe; ///< channel elements FFPsyContext psy; struct FFPsyPreprocessContext* psypp; - AACCoefficientsEncoder *coder; + const AACCoefficientsEncoder *coder; int cur_channel; ///< current channel for coder context int random_state; float lambda; |