History

Add missing "const" all over the place.

Only "./configure --enable-gpl" on x86 was tested.

Reimar Döffinger committed 12 years ago

Commit d9e2ace1 parent be4aac332 files · +57 −57Browse files

Unified · Split

32 files
  1. ffserver.c +1 −1
  2. libavcodec/aaccoder.c +1 −1
  3. libavcodec/aic.c +1 −1
  4. libavcodec/atrac3plus.c +19 −19
  5. libavcodec/dcaenc.h +2 −2
  6. libavcodec/evrcdata.h +1 −1
  7. libavcodec/g722dec.c +1 −1
  8. libavcodec/indeo3.c +2 −2
  9. libavcodec/indeo4data.h +1 −1
  10. libavcodec/mips/aaccoder_mips.c +1 −1
  11. libavcodec/movtextenc.c +1 −1
  12. libavcodec/ppc/fdctdsp.c +1 −1
  13. libavcodec/sipr.c +1 −1
  14. libavcodec/siprdata.h +1 −1
  15. libavcodec/wavpackenc.h +1 −1
  16. libavcodec/x86/mlpdsp.c +2 −2
  17. libavcodec/x86/videodsp_init.c +4 −4
  18. libavdevice/bktr.c +1 −1
  19. libavdevice/opengl_enc.c +1 −1
  20. libavfilter/af_volume.c +1 −1
  21. libavfilter/f_perms.c +1 −1
  22. libavfilter/vf_colormatrix.c +1 −1
  23. libavfilter/vf_drawtext.c +1 −1
  24. libavfilter/vf_overlay.c +1 −1
  25. libavfilter/vf_rotate.c +2 −2
  26. libavfilter/vf_subtitles.c +1 −1
  27. libavformat/libmodplug.c +1 −1
  28. libavformat/mov_chan.c +1 −1
  29. libavformat/rtspcodes.h +1 −1
  30. libavresample/audio_mix.c +1 −1
  31. libavutil/frame.c +1 −1
  32. libpostproc/postprocess.c +1 −1
ffserver.c+1−1
@@ -91,7 +91,7 @@ enum HTTPState { · 90 unmodified lines
9191 RTSPSTATE_SEND_PACKET,
9292 };
9393
94−static const char *http_state[] = {
94+static const char * const http_state[] = {
9595 "HTTP_WAIT_REQUEST",
9696 "HTTP_SEND_HEADER",
9797
libavcodec/aaccoder.c+1−1
@@ -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
libavcodec/aic.c+1−1
@@ -132,7 +132,7 @@ static const uint8_t aic_c_ext_scan[192] = { · 131 unmodified lines
132132 177, 184, 176, 169, 162, 161, 168, 160,
133133 };
134134
135−static const uint8_t *aic_scan[NUM_BANDS] = {
135+static const uint8_t * const aic_scan[NUM_BANDS] = {
136136 aic_y_scan, aic_c_scan, aic_y_ext_scan, aic_c_ext_scan
137137 };
138138
libavcodec/atrac3plus.c+19−19
@@ -84,52 +84,52 @@ av_cold void ff_atrac3p_init_vlcs(void) · 83 unmodified lines
8484 {
8585 int i, wl_vlc_offs, ct_vlc_offs, sf_vlc_offs, tab_offset;
8686
87− static int wl_nb_bits[4] = { 2, 3, 5, 5 };
88− static int wl_nb_codes[4] = { 3, 5, 8, 8 };
89− static const uint8_t *wl_bits[4] = {
87+ static const int wl_nb_bits[4] = { 2, 3, 5, 5 };
88+ static const int wl_nb_codes[4] = { 3, 5, 8, 8 };
89+ static const uint8_t * const wl_bits[4] = {
9090 atrac3p_wl_huff_bits1, atrac3p_wl_huff_bits2,
9191 atrac3p_wl_huff_bits3, atrac3p_wl_huff_bits4
9292 };
93− static const uint8_t *wl_codes[4] = {
93+ static const uint8_t * const wl_codes[4] = {
9494 atrac3p_wl_huff_code1, atrac3p_wl_huff_code2,
9595 atrac3p_wl_huff_code3, atrac3p_wl_huff_code4
9696 };
97− static const uint8_t *wl_xlats[4] = {
97+ static const uint8_t * const wl_xlats[4] = {
9898 atrac3p_wl_huff_xlat1, atrac3p_wl_huff_xlat2, NULL, NULL
9999 };
100100
101− static int ct_nb_bits[4] = { 3, 4, 4, 4 };
102− static int ct_nb_codes[4] = { 4, 8, 8, 8 };
103− static const uint8_t *ct_bits[4] = {
101+ static const int ct_nb_bits[4] = { 3, 4, 4, 4 };
102+ static const int ct_nb_codes[4] = { 4, 8, 8, 8 };
103+ static const uint8_t * const ct_bits[4] = {
104104 atrac3p_ct_huff_bits1, atrac3p_ct_huff_bits2,
105105 atrac3p_ct_huff_bits2, atrac3p_ct_huff_bits3
106106 };
107− static const uint8_t *ct_codes[4] = {
107+ static const uint8_t * const ct_codes[4] = {
108108 atrac3p_ct_huff_code1, atrac3p_ct_huff_code2,
109109 atrac3p_ct_huff_code2, atrac3p_ct_huff_code3
110110 };
111− static const uint8_t *ct_xlats[4] = {
111+ static const uint8_t * const ct_xlats[4] = {
112112 NULL, NULL, atrac3p_ct_huff_xlat1, NULL
113113 };
114114
115− static int sf_nb_bits[8] = { 9, 9, 9, 9, 6, 6, 7, 7 };
116− static int sf_nb_codes[8] = { 64, 64, 64, 64, 16, 16, 16, 16 };
117− static const uint8_t *sf_bits[8] = {
115+ static const int sf_nb_bits[8] = { 9, 9, 9, 9, 6, 6, 7, 7 };
116+ static const int sf_nb_codes[8] = { 64, 64, 64, 64, 16, 16, 16, 16 };
117+ static const uint8_t * const sf_bits[8] = {
118118 atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits2,
119119 atrac3p_sf_huff_bits3, atrac3p_sf_huff_bits4, atrac3p_sf_huff_bits4,
120120 atrac3p_sf_huff_bits5, atrac3p_sf_huff_bits6
121121 };
122− static const uint16_t *sf_codes[8] = {
122+ static const uint16_t * const sf_codes[8] = {
123123 atrac3p_sf_huff_code1, atrac3p_sf_huff_code1, atrac3p_sf_huff_code2,
124124 atrac3p_sf_huff_code3, atrac3p_sf_huff_code4, atrac3p_sf_huff_code4,
125125 atrac3p_sf_huff_code5, atrac3p_sf_huff_code6
126126 };
127− static const uint8_t *sf_xlats[8] = {
127+ static const uint8_t * const sf_xlats[8] = {
128128 atrac3p_sf_huff_xlat1, atrac3p_sf_huff_xlat2, NULL, NULL,
129129 atrac3p_sf_huff_xlat4, atrac3p_sf_huff_xlat5, NULL, NULL
130130 };
131131
132− static const uint8_t *gain_cbs[11] = {
132+ static const uint8_t * const gain_cbs[11] = {
133133 atrac3p_huff_gain_npoints1_cb, atrac3p_huff_gain_npoints1_cb,
134134 atrac3p_huff_gain_lev1_cb, atrac3p_huff_gain_lev2_cb,
135135 atrac3p_huff_gain_lev3_cb, atrac3p_huff_gain_lev4_cb,
@@ -137,7 +137,7 @@ av_cold void ff_atrac3p_init_vlcs(void) · 1 unmodified line
137137 atrac3p_huff_gain_loc4_cb, atrac3p_huff_gain_loc2_cb,
138138 atrac3p_huff_gain_loc5_cb
139139 };
140− static const uint8_t *gain_xlats[11] = {
140+ static const uint8_t * const gain_xlats[11] = {
141141 NULL, atrac3p_huff_gain_npoints2_xlat, atrac3p_huff_gain_lev1_xlat,
142142 atrac3p_huff_gain_lev2_xlat, atrac3p_huff_gain_lev3_xlat,
143143 atrac3p_huff_gain_lev4_xlat, atrac3p_huff_gain_loc3_xlat,
@@ -145,13 +145,13 @@ av_cold void ff_atrac3p_init_vlcs(void) · 1 unmodified line
145145 atrac3p_huff_gain_loc2_xlat, atrac3p_huff_gain_loc5_xlat
146146 };
147147
148− static const uint8_t *tone_cbs[7] = {
148+ static const uint8_t * const tone_cbs[7] = {
149149 atrac3p_huff_tonebands_cb, atrac3p_huff_numwavs1_cb,
150150 atrac3p_huff_numwavs2_cb, atrac3p_huff_wav_ampsf1_cb,
151151 atrac3p_huff_wav_ampsf2_cb, atrac3p_huff_wav_ampsf3_cb,
152152 atrac3p_huff_freq_cb
153153 };
154− static const uint8_t *tone_xlats[7] = {
154+ static const uint8_t * const tone_xlats[7] = {
155155 NULL, NULL, atrac3p_huff_numwavs2_xlat, atrac3p_huff_wav_ampsf1_xlat,
156156 atrac3p_huff_wav_ampsf2_xlat, atrac3p_huff_wav_ampsf3_xlat,
157157 atrac3p_huff_freq_xlat
libavcodec/dcaenc.h+2−2
@@ -38,12 +38,12 @@ static const uint8_t bitstream_sfreq[] = { 1, 2, 3, 6, 7, 8, 11, 12, 13 }; · 37 unmodified lines
3838 /* Auditory filter center frequencies and bandwidths, in Hz.
3939 * The last two are made up, because there is no scientific data.
4040 */
41−static uint16_t fc[] = {
41+static const uint16_t fc[] = {
4242 50, 150, 250, 350, 450, 570, 700, 840, 1000, 1170, 1370, 1600, 1850, 2150,
4343 2500, 2900, 3400, 4000, 4800, 5800, 7000, 8500, 10500, 13500, 17000
4444 };
4545
46−static uint16_t erb[] = {
46+static const uint16_t erb[] = {
4747 80, 100, 100, 100, 110, 120, 140, 150, 160, 190, 210, 240, 280,
4848 320, 380, 450, 550, 700, 900, 1100, 1300, 1800, 2500, 3500, 4500
4949 };
libavcodec/evrcdata.h+1−1
@@ -1451,7 +1451,7 @@ static const float * const evrc_lspq_quant_codebooks[] = { · 1450 unmodified lines
14511451 evrc_lspq_quant_codebook1[0], evrc_lspq_quant_codebook2[0],
14521452 };
14531453
1454−static const float * const *evrc_lspq_codebooks[] = {
1454+static const float * const * const evrc_lspq_codebooks[] = {
14551455 0,
14561456 evrc_lspq_quant_codebooks,
14571457 0,
libavcodec/g722dec.c+1−1
@@ -77,7 +77,7 @@ static const int16_t low_inv_quant5[32] = { · 76 unmodified lines
7777 587, 473, 370, 276, 190, 110, 35, -35
7878 };
7979
80−static const int16_t *low_inv_quants[3] = { ff_g722_low_inv_quant6,
80+static const int16_t * const low_inv_quants[3] = { ff_g722_low_inv_quant6,
8181 low_inv_quant5,
8282 ff_g722_low_inv_quant4 };
8383
libavcodec/indeo3.c+2−2
@@ -118,8 +118,8 @@ static uint8_t requant_tab[8][128]; · 117 unmodified lines
118118 */
119119 static av_cold void build_requant_tab(void)
120120 {
121− static int8_t offsets[8] = { 1, 1, 2, -3, -3, 3, 4, 4 };
122− static int8_t deltas [8] = { 0, 1, 0, 4, 4, 1, 0, 1 };
121+ static const int8_t offsets[8] = { 1, 1, 2, -3, -3, 3, 4, 4 };
122+ static const int8_t deltas [8] = { 0, 1, 0, 4, 4, 1, 0, 1 };
123123
124124 int i, j, step;
125125
libavcodec/indeo4data.h+1−1
@@ -61,7 +61,7 @@ static const uint8_t ivi4_horizontal_scan_4x4[16] = { · 60 unmodified lines
6161 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
6262 };
6363
64−static const uint8_t *scan_index_to_tab[15] = {
64+static const uint8_t * const scan_index_to_tab[15] = {
6565 // for 8x8 transforms
6666 ff_zigzag_direct,
6767 ivi4_alternate_scan_8x8,
libavcodec/mips/aaccoder_mips.c+1−1
@@ -81,7 +81,7 @@ static const uint8_t run_value_bits_short[16] = { · 80 unmodified lines
8181 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
8282 };
8383
84−static const uint8_t *run_value_bits[2] = {
84+static const uint8_t * const run_value_bits[2] = {
8585 run_value_bits_long, run_value_bits_short
8686 };
8787
libavcodec/movtextenc.c+1−1
@@ -41,7 +41,7 @@ static av_cold int mov_text_encode_init(AVCodecContext *avctx) · 40 unmodified lines
4141 * For now, we'll use a fixed default style. When we add styling
4242 * support, this will be generated from the ASS style.
4343 */
44− static uint8_t text_sample_entry[] = {
44+ static const uint8_t text_sample_entry[] = {
4545 0x00, 0x00, 0x00, 0x00, // uint32_t displayFlags
4646 0x01, // int8_t horizontal-justification
4747 0xFF, // int8_t vertical-justification
libavcodec/ppc/fdctdsp.c+1−1
@@ -59,7 +59,7 @@ · 58 unmodified lines
5959 #define WA (SQRT_2 * (-C3 - C5))
6060 #define WB (SQRT_2 * (C5 - C3))
6161
62−static vector float fdctconsts[3] = {
62+static const vector float fdctconsts[3] = {
6363 { W0, W1, W2, W3 },
6464 { W4, W5, W6, W7 },
6565 { W8, W9, WA, WB }
libavcodec/sipr.c+1−1
@@ -139,7 +139,7 @@ const float ff_pow_0_5[] = { · 138 unmodified lines
139139 1.0/(1 << 13), 1.0/(1 << 14), 1.0/(1 << 15), 1.0/(1 << 16)
140140 };
141141
142−static void dequant(float *out, const int *idx, const float *cbs[])
142+static void dequant(float *out, const int *idx, const float * const cbs[])
143143 {
144144 int i;
145145 int stride = 2;
libavcodec/siprdata.h+1−1
@@ -206,7 +206,7 @@ static const float lsf_cb5[32][2] = { · 205 unmodified lines
206206 { 0.150514, 0.034366}, { 0.186092, -0.069272}
207207 };
208208
209−static const float *lsf_codebooks[] = {
209+static const float * const lsf_codebooks[] = {
210210 lsf_cb1[0], lsf_cb2[0], lsf_cb3[0], lsf_cb4[0], lsf_cb5[0]
211211 };
212212
libavcodec/wavpackenc.h+1−1
@@ -637,7 +637,7 @@ static const WavPackDecorrSpec very_high_specs[] = { · 636 unmodified lines
637637 { 0, 1, { -1,18,18, 2,18, 3, 5,18, 2,18, 6, 8, 4, 5, 7,-1 } },
638638 };
639639
640−static const WavPackDecorrSpec *decorr_filters[] = {
640+static const WavPackDecorrSpec * const decorr_filters[] = {
641641 &fast_specs[0], &default_specs[0], &high_specs[0], &very_high_specs[0],
642642 };
643643
libavcodec/x86/mlpdsp.c+2−2
@@ -44,12 +44,12 @@ extern char ff_mlp_iirorder_2; · 43 unmodified lines
4444 extern char ff_mlp_iirorder_1;
4545 extern char ff_mlp_iirorder_0;
4646
47−static const void *firtable[9] = { &ff_mlp_firorder_0, &ff_mlp_firorder_1,
47+static const void * const firtable[9] = { &ff_mlp_firorder_0, &ff_mlp_firorder_1,
4848 &ff_mlp_firorder_2, &ff_mlp_firorder_3,
4949 &ff_mlp_firorder_4, &ff_mlp_firorder_5,
5050 &ff_mlp_firorder_6, &ff_mlp_firorder_7,
5151 &ff_mlp_firorder_8 };
52−static const void *iirtable[5] = { &ff_mlp_iirorder_0, &ff_mlp_iirorder_1,
52+static const void * const iirtable[5] = { &ff_mlp_iirorder_0, &ff_mlp_iirorder_1,
5353 &ff_mlp_iirorder_2, &ff_mlp_iirorder_3,
5454 &ff_mlp_iirorder_4 };
5555
libavcodec/x86/videodsp_init.c+4−4
@@ -61,7 +61,7 @@ extern emu_edge_vfix_func ff_emu_edge_vfix20_mmx; · 60 unmodified lines
6161 extern emu_edge_vfix_func ff_emu_edge_vfix21_mmx;
6262 extern emu_edge_vfix_func ff_emu_edge_vfix22_mmx;
6363 #if ARCH_X86_32
64−static emu_edge_vfix_func *vfixtbl_mmx[22] = {
64+static emu_edge_vfix_func * const vfixtbl_mmx[22] = {
6565 &ff_emu_edge_vfix1_mmx, &ff_emu_edge_vfix2_mmx, &ff_emu_edge_vfix3_mmx,
6666 &ff_emu_edge_vfix4_mmx, &ff_emu_edge_vfix5_mmx, &ff_emu_edge_vfix6_mmx,
6767 &ff_emu_edge_vfix7_mmx, &ff_emu_edge_vfix8_mmx, &ff_emu_edge_vfix9_mmx,
@@ -80,7 +80,7 @@ extern emu_edge_vfix_func ff_emu_edge_vfix19_sse; · 12 unmodified lines
8080 extern emu_edge_vfix_func ff_emu_edge_vfix20_sse;
8181 extern emu_edge_vfix_func ff_emu_edge_vfix21_sse;
8282 extern emu_edge_vfix_func ff_emu_edge_vfix22_sse;
83−static emu_edge_vfix_func *vfixtbl_sse[22] = {
83+static emu_edge_vfix_func * const vfixtbl_sse[22] = {
8484 ff_emu_edge_vfix1_mmx, ff_emu_edge_vfix2_mmx, ff_emu_edge_vfix3_mmx,
8585 ff_emu_edge_vfix4_mmx, ff_emu_edge_vfix5_mmx, ff_emu_edge_vfix6_mmx,
8686 ff_emu_edge_vfix7_mmx, ff_emu_edge_vfix8_mmx, ff_emu_edge_vfix9_mmx,
@@ -109,7 +109,7 @@ extern emu_edge_hfix_func ff_emu_edge_hfix18_mmx; · 22 unmodified lines
109109 extern emu_edge_hfix_func ff_emu_edge_hfix20_mmx;
110110 extern emu_edge_hfix_func ff_emu_edge_hfix22_mmx;
111111 #if ARCH_X86_32
112−static emu_edge_hfix_func *hfixtbl_mmx[11] = {
112+static emu_edge_hfix_func * const hfixtbl_mmx[11] = {
113113 ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx,
114114 ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx,
115115 ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_mmx, ff_emu_edge_hfix18_mmx,
@@ -121,7 +121,7 @@ extern emu_edge_hfix_func ff_emu_edge_hfix16_sse2; · 5 unmodified lines
121121 extern emu_edge_hfix_func ff_emu_edge_hfix18_sse2;
122122 extern emu_edge_hfix_func ff_emu_edge_hfix20_sse2;
123123 extern emu_edge_hfix_func ff_emu_edge_hfix22_sse2;
124−static emu_edge_hfix_func *hfixtbl_sse2[11] = {
124+static emu_edge_hfix_func * const hfixtbl_sse2[11] = {
125125 ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx,
126126 ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx,
127127 ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_sse2, ff_emu_edge_hfix18_sse2,
libavdevice/bktr.c+1−1
@@ -80,7 +80,7 @@ typedef struct VideoData { · 79 unmodified lines
8080 #define VIDEO_FORMAT NTSC
8181 #endif
8282
83−static int bktr_dev[] = { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2,
83+static const int bktr_dev[] = { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2,
8484 METEOR_DEV3, METEOR_DEV_SVIDEO };
8585
8686 uint8_t *video_buf;
libavdevice/opengl_enc.c+1−1
@@ -164,7 +164,7 @@ typedef struct OpenGLVertexInfo · 163 unmodified lines
164164 } OpenGLVertexInfo;
165165
166166 /* defines 2 triangles to display */
167−static GLushort g_index[6] =
167+static const GLushort g_index[6] =
168168 {
169169 0, 1, 2,
170170 0, 3, 2,
libavfilter/af_volume.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #include "internal.h"
3939 #include "af_volume.h"
4040
41−static const char *precision_str[] = {
41+static const char * const precision_str[] = {
4242 "fixed", "float", "double"
4343 };
4444
libavfilter/f_perms.c+1−1
@@ -72,7 +72,7 @@ static av_cold int init(AVFilterContext *ctx) · 71 unmodified lines
7272 }
7373
7474 enum perm { RO, RW };
75−static const char *perm_str[2] = { "RO", "RW" };
75+static const char * const perm_str[2] = { "RO", "RW" };
7676
7777 static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
7878 {
libavfilter/vf_colormatrix.c+1−1
@@ -158,7 +158,7 @@ static void calc_coefficients(AVFilterContext *ctx) · 157 unmodified lines
158158 }
159159 }
160160
161−static const char *color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"};
161+static const char * const color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"};
162162
163163 static av_cold int init(AVFilterContext *ctx)
164164 {
libavfilter/vf_drawtext.c+1−1
@@ -272,7 +272,7 @@ struct ft_error · 271 unmodified lines
272272 {
273273 int err;
274274 const char *err_msg;
275−} static ft_errors[] =
275+} static const ft_errors[] =
276276 #include FT_ERRORS_H
277277
278278 #define FT_ERRMSG(e) ft_errors[e].err_msg
libavfilter/vf_overlay.c+1−1
@@ -76,7 +76,7 @@ enum EOFAction { · 75 unmodified lines
7676 EOF_ACTION_PASS
7777 };
7878
79−static const char *eof_action_str[] = {
79+static const char * const eof_action_str[] = {
8080 "repeat", "endall", "pass"
8181 };
8282
libavfilter/vf_rotate.c+2−2
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838
3939 #include <float.h>
4040
41−static const char *var_names[] = {
41+static const char * const var_names[] = {
4242 "in_w" , "iw", ///< width of the input video
4343 "in_h" , "ih", ///< height of the input video
4444 "out_w", "ow", ///< width of the input video
@@ -130,7 +130,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 85 unmodified lines
130130
131131 static int query_formats(AVFilterContext *ctx)
132132 {
133− static enum PixelFormat pix_fmts[] = {
133+ static const enum PixelFormat pix_fmts[] = {
134134 AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP,
135135 AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA,
136136 AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,
libavfilter/vf_subtitles.c+1−1
@@ -254,7 +254,7 @@ static const AVOption subtitles_options[] = { · 253 unmodified lines
254254 {NULL},
255255 };
256256
257−static const char *font_mimetypes[] = {
257+static const char * const font_mimetypes[] = {
258258 "application/x-truetype-font",
259259 "application/vnd.ms-opentype",
260260 "application/x-font-ttf",
libavformat/libmodplug.c+1−1
@@ -60,7 +60,7 @@ typedef struct ModPlugContext { · 59 unmodified lines
6060 AVExpr *expr; ///< parsed color eval expression
6161 } ModPlugContext;
6262
63−static const char *var_names[] = {
63+static const char * const var_names[] = {
6464 "x", "y",
6565 "w", "h",
6666 "t",
libavformat/mov_chan.c+1−1
@@ -344,7 +344,7 @@ static const struct MovChannelLayoutMap mov_ch_layout_map_9ch[] = { · 343 unmodified lines
344344 { 0, 0 },
345345 };
346346
347−static const struct MovChannelLayoutMap *mov_ch_layout_map[] = {
347+static const struct MovChannelLayoutMap * const mov_ch_layout_map[] = {
348348 mov_ch_layout_map_misc,
349349 mov_ch_layout_map_1ch,
350350 mov_ch_layout_map_2ch,
libavformat/rtspcodes.h+1−1
@@ -74,7 +74,7 @@ RTSP_STATUS_VERSION =505, · 73 unmodified lines
7474 RTSP_STATUS_UNSUPPORTED_OPTION =551,
7575 };
7676
77−static const av_unused char *rtsp_status_strings[] = {
77+static const av_unused char * const rtsp_status_strings[] = {
7878 [RTSP_STATUS_CONTINUE] ="Continue",
7979 [RTSP_STATUS_OK] ="OK",
8080 [RTSP_STATUS_CREATED] ="Created",
libavresample/audio_mix.c+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "audio_data.h"
2929 #include "audio_mix.h"
3030
31−static const char *coeff_type_names[] = { "q8", "q15", "flt" };
31+static const char * const coeff_type_names[] = { "q8", "q15", "flt" };
3232
3333 struct AudioMix {
3434 AVAudioResampleContext *avr;
libavutil/frame.c+1−1
@@ -72,7 +72,7 @@ int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type) · 71 unmodified lines
7272
7373 const char *av_get_colorspace_name(enum AVColorSpace val)
7474 {
75− static const char *name[] = {
75+ static const char * const name[] = {
7676 [AVCOL_SPC_RGB] = "GBR",
7777 [AVCOL_SPC_BT709] = "bt709",
7878 [AVCOL_SPC_FCC] = "fcc",
libpostproc/postprocess.c+1−1
@@ -154,7 +154,7 @@ static const struct PPFilter filters[]= · 153 unmodified lines
154154 {NULL, NULL,0,0,0,0} //End Marker
155155 };
156156
157−static const char *replaceTable[]=
157+static const char * const replaceTable[]=
158158 {
159159 "default", "hb:a,vb:a,dr:a",
160160 "de", "hb:a,vb:a,dr:a",

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