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
226226 QUANTIZE_AND_ENCODE_BAND_COST_FUNC(NOISE, 0, 0, 0, 0, 1, 0, ROUND_STANDARD)
227227 QUANTIZE_AND_ENCODE_BAND_COST_FUNC(STEREO,0, 0, 0, 0, 0, 1, ROUND_STANDARD)
228228
229−static quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] =
229+static const quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] =
230230 {
231231 quantize_and_encode_band_cost_ZERO,
232232 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
246246 quantize_and_encode_band_cost_STEREO,
247247 };
248248
249−static quantize_and_encode_band_func quantize_and_encode_band_cost_rtz_arr[] =
249+static const quantize_and_encode_band_func quantize_and_encode_band_cost_rtz_arr[] =
250250 {
251251 quantize_and_encode_band_cost_ZERO,
252252 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