diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-22 14:02:50 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-28 09:08:11 +0200 |
commit | b71e2e42ef85a1803faea9c0c4e4b0ebb90c4251 (patch) | |
tree | 87c1c7af0ad38e8e939232c59f762a6a167e8751 /libavcodec/aaccoder.c | |
parent | cdd50223a67c14fce4e5e26724d409356667edd2 (diff) | |
download | ffmpeg-b71e2e42ef85a1803faea9c0c4e4b0ebb90c4251.tar.gz |
avcodec/aaccoder: Mark function pointer arrays as const
Forgotten in 57d305207a30131172e1c07c99e2cba833c1add1.
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/aaccoder.c')
-rw-r--r-- | libavcodec/aaccoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index e3b6b2f02c..6291c16123 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -226,7 +226,7 @@ QUANTIZE_AND_ENCODE_BAND_COST_FUNC(ESC_RTZ, 0, 1, 1, 1, 0, 0, ROUND_TO_ZERO) QUANTIZE_AND_ENCODE_BAND_COST_FUNC(NOISE, 0, 0, 0, 0, 1, 0, ROUND_STANDARD) QUANTIZE_AND_ENCODE_BAND_COST_FUNC(STEREO,0, 0, 0, 0, 0, 1, ROUND_STANDARD) -static quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] = +static const quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] = { quantize_and_encode_band_cost_ZERO, quantize_and_encode_band_cost_SQUAD, @@ -246,7 +246,7 @@ static quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] = quantize_and_encode_band_cost_STEREO, }; -static quantize_and_encode_band_func quantize_and_encode_band_cost_rtz_arr[] = +static const quantize_and_encode_band_func quantize_and_encode_band_cost_rtz_arr[] = { quantize_and_encode_band_cost_ZERO, quantize_and_encode_band_cost_SQUAD, |