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
53 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 953 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
54};54};
55 55
56static const uint8_t *run_value_bits[2] = {56static const uint8_t * const run_value_bits[2] = {
57 run_value_bits_long, run_value_bits_short57 run_value_bits_long, run_value_bits_short
58};58};
59 59
@@ -1112,7 +1112,7 @@ static void search_for_ms(AACEncContext *s, ChannelElement *cpe, · 1052 unmodified lines
1112 }1112 }
1113}1113}
1114 1114
1115AACCoefficientsEncoder ff_aac_coders[] = {1115const AACCoefficientsEncoder ff_aac_coders[] = {
1116 {1116 {
1117 search_for_quantizers_faac,1117 search_for_quantizers_faac,
1118 encode_window_bands_info,1118 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