History

avcodec/aaccoder: Mark function pointer arrays as const

Forgotten in 57d305207a30131172e1c07c99e2cba833c1add1.

Andreas Rheinhardt committed 4 years ago

Commit b71e2e41 parent cdd50221 file · +2 −2Browse files

Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all

Unified · Split

libavcodec/aaccoder.c+2−2
@@ -226,7 +226,7 @@ QUANTIZE_AND_ENCODE_BAND_COST_FUNC(ESC_RTZ, 0, 1, 1, 1, 0, 0, ROUND_TO_ZERO) · 225 unmodified lines
226QUANTIZE_AND_ENCODE_BAND_COST_FUNC(NOISE, 0, 0, 0, 0, 1, 0, ROUND_STANDARD)226QUANTIZE_AND_ENCODE_BAND_COST_FUNC(NOISE, 0, 0, 0, 0, 1, 0, ROUND_STANDARD)
227QUANTIZE_AND_ENCODE_BAND_COST_FUNC(STEREO,0, 0, 0, 0, 0, 1, ROUND_STANDARD)227QUANTIZE_AND_ENCODE_BAND_COST_FUNC(STEREO,0, 0, 0, 0, 0, 1, ROUND_STANDARD)
228 228
229static quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] =229static const quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] =
230{230{
231 quantize_and_encode_band_cost_ZERO,231 quantize_and_encode_band_cost_ZERO,
232 quantize_and_encode_band_cost_SQUAD,232 quantize_and_encode_band_cost_SQUAD,
@@ -246,7 +246,7 @@ static quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] = · 13 unmodified lines
246 quantize_and_encode_band_cost_STEREO,246 quantize_and_encode_band_cost_STEREO,
247};247};
248 248
249static quantize_and_encode_band_func quantize_and_encode_band_cost_rtz_arr[] =249static const quantize_and_encode_band_func quantize_and_encode_band_cost_rtz_arr[] =
250{250{
251 quantize_and_encode_band_cost_ZERO,251 quantize_and_encode_band_cost_ZERO,
252 quantize_and_encode_band_cost_SQUAD,252 quantize_and_encode_band_cost_SQUAD,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t