History

Mark some arrays that never change as const.

Anton Khirnov committed 10 years ago

Commit fd9212f1 parent b420a2751 files · +129 −129Browse files

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

Unified · Split

libavcodec/aaccoder.c+2−2
@@ -53,7 +53,7 @@ static const uint8_t run_value_bits_short[16] = { · 52 unmodified lines
5353 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
5454 };
5555
56−static const uint8_t *run_value_bits[2] = {
56+static const uint8_t * const run_value_bits[2] = {
5757 run_value_bits_long, run_value_bits_short
5858 };
5959
@@ -1112,7 +1112,7 @@ static void search_for_ms(AACEncContext *s, ChannelElement *cpe, · 1052 unmodified lines
11121112 }
11131113 }
11141114
1115−AACCoefficientsEncoder ff_aac_coders[] = {
1115+const AACCoefficientsEncoder ff_aac_coders[] = {
11161116 {
11171117 search_for_quantizers_faac,
11181118 encode_window_bands_info,

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