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
91 RTSPSTATE_SEND_PACKET,91 RTSPSTATE_SEND_PACKET,
92};92};
93 93
94static const char *http_state[] = {94static const char * const http_state[] = {
95 "HTTP_WAIT_REQUEST",95 "HTTP_WAIT_REQUEST",
96 "HTTP_SEND_HEADER",96 "HTTP_SEND_HEADER",
97 97
libavcodec/aaccoder.c+1−1
@@ -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
libavcodec/aic.c+1−1
@@ -132,7 +132,7 @@ static const uint8_t aic_c_ext_scan[192] = { · 131 unmodified lines
132 177, 184, 176, 169, 162, 161, 168, 160,132 177, 184, 176, 169, 162, 161, 168, 160,
133};133};
134 134
135static const uint8_t *aic_scan[NUM_BANDS] = {135static const uint8_t * const aic_scan[NUM_BANDS] = {
136 aic_y_scan, aic_c_scan, aic_y_ext_scan, aic_c_ext_scan136 aic_y_scan, aic_c_scan, aic_y_ext_scan, aic_c_ext_scan
137};137};
138 138
libavcodec/atrac3plus.c+19−19
@@ -84,52 +84,52 @@ av_cold void ff_atrac3p_init_vlcs(void) · 83 unmodified lines
84{84{
85 int i, wl_vlc_offs, ct_vlc_offs, sf_vlc_offs, tab_offset;85 int i, wl_vlc_offs, ct_vlc_offs, sf_vlc_offs, tab_offset;
86 86
87 static int wl_nb_bits[4] = { 2, 3, 5, 5 };87 static const int wl_nb_bits[4] = { 2, 3, 5, 5 };
88 static int wl_nb_codes[4] = { 3, 5, 8, 8 };88 static const int wl_nb_codes[4] = { 3, 5, 8, 8 };
89 static const uint8_t *wl_bits[4] = {89 static const uint8_t * const wl_bits[4] = {
90 atrac3p_wl_huff_bits1, atrac3p_wl_huff_bits2,90 atrac3p_wl_huff_bits1, atrac3p_wl_huff_bits2,
91 atrac3p_wl_huff_bits3, atrac3p_wl_huff_bits491 atrac3p_wl_huff_bits3, atrac3p_wl_huff_bits4
92 };92 };
93 static const uint8_t *wl_codes[4] = {93 static const uint8_t * const wl_codes[4] = {
94 atrac3p_wl_huff_code1, atrac3p_wl_huff_code2,94 atrac3p_wl_huff_code1, atrac3p_wl_huff_code2,
95 atrac3p_wl_huff_code3, atrac3p_wl_huff_code495 atrac3p_wl_huff_code3, atrac3p_wl_huff_code4
96 };96 };
97 static const uint8_t *wl_xlats[4] = {97 static const uint8_t * const wl_xlats[4] = {
98 atrac3p_wl_huff_xlat1, atrac3p_wl_huff_xlat2, NULL, NULL98 atrac3p_wl_huff_xlat1, atrac3p_wl_huff_xlat2, NULL, NULL
99 };99 };
100 100
101 static int ct_nb_bits[4] = { 3, 4, 4, 4 };101 static const int ct_nb_bits[4] = { 3, 4, 4, 4 };
102 static int ct_nb_codes[4] = { 4, 8, 8, 8 };102 static const int ct_nb_codes[4] = { 4, 8, 8, 8 };
103 static const uint8_t *ct_bits[4] = {103 static const uint8_t * const ct_bits[4] = {
104 atrac3p_ct_huff_bits1, atrac3p_ct_huff_bits2,104 atrac3p_ct_huff_bits1, atrac3p_ct_huff_bits2,
105 atrac3p_ct_huff_bits2, atrac3p_ct_huff_bits3105 atrac3p_ct_huff_bits2, atrac3p_ct_huff_bits3
106 };106 };
107 static const uint8_t *ct_codes[4] = {107 static const uint8_t * const ct_codes[4] = {
108 atrac3p_ct_huff_code1, atrac3p_ct_huff_code2,108 atrac3p_ct_huff_code1, atrac3p_ct_huff_code2,
109 atrac3p_ct_huff_code2, atrac3p_ct_huff_code3109 atrac3p_ct_huff_code2, atrac3p_ct_huff_code3
110 };110 };
111 static const uint8_t *ct_xlats[4] = {111 static const uint8_t * const ct_xlats[4] = {
112 NULL, NULL, atrac3p_ct_huff_xlat1, NULL112 NULL, NULL, atrac3p_ct_huff_xlat1, NULL
113 };113 };
114 114
115 static int sf_nb_bits[8] = { 9, 9, 9, 9, 6, 6, 7, 7 };115 static const 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 };116 static const int sf_nb_codes[8] = { 64, 64, 64, 64, 16, 16, 16, 16 };
117 static const uint8_t *sf_bits[8] = {117 static const uint8_t * const sf_bits[8] = {
118 atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits2,118 atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits1, atrac3p_sf_huff_bits2,
119 atrac3p_sf_huff_bits3, atrac3p_sf_huff_bits4, atrac3p_sf_huff_bits4,119 atrac3p_sf_huff_bits3, atrac3p_sf_huff_bits4, atrac3p_sf_huff_bits4,
120 atrac3p_sf_huff_bits5, atrac3p_sf_huff_bits6120 atrac3p_sf_huff_bits5, atrac3p_sf_huff_bits6
121 };121 };
122 static const uint16_t *sf_codes[8] = {122 static const uint16_t * const sf_codes[8] = {
123 atrac3p_sf_huff_code1, atrac3p_sf_huff_code1, atrac3p_sf_huff_code2,123 atrac3p_sf_huff_code1, atrac3p_sf_huff_code1, atrac3p_sf_huff_code2,
124 atrac3p_sf_huff_code3, atrac3p_sf_huff_code4, atrac3p_sf_huff_code4,124 atrac3p_sf_huff_code3, atrac3p_sf_huff_code4, atrac3p_sf_huff_code4,
125 atrac3p_sf_huff_code5, atrac3p_sf_huff_code6125 atrac3p_sf_huff_code5, atrac3p_sf_huff_code6
126 };126 };
127 static const uint8_t *sf_xlats[8] = {127 static const uint8_t * const sf_xlats[8] = {
128 atrac3p_sf_huff_xlat1, atrac3p_sf_huff_xlat2, NULL, NULL,128 atrac3p_sf_huff_xlat1, atrac3p_sf_huff_xlat2, NULL, NULL,
129 atrac3p_sf_huff_xlat4, atrac3p_sf_huff_xlat5, NULL, NULL129 atrac3p_sf_huff_xlat4, atrac3p_sf_huff_xlat5, NULL, NULL
130 };130 };
131 131
132 static const uint8_t *gain_cbs[11] = {132 static const uint8_t * const gain_cbs[11] = {
133 atrac3p_huff_gain_npoints1_cb, atrac3p_huff_gain_npoints1_cb,133 atrac3p_huff_gain_npoints1_cb, atrac3p_huff_gain_npoints1_cb,
134 atrac3p_huff_gain_lev1_cb, atrac3p_huff_gain_lev2_cb,134 atrac3p_huff_gain_lev1_cb, atrac3p_huff_gain_lev2_cb,
135 atrac3p_huff_gain_lev3_cb, atrac3p_huff_gain_lev4_cb,135 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
137 atrac3p_huff_gain_loc4_cb, atrac3p_huff_gain_loc2_cb,137 atrac3p_huff_gain_loc4_cb, atrac3p_huff_gain_loc2_cb,
138 atrac3p_huff_gain_loc5_cb138 atrac3p_huff_gain_loc5_cb
139 };139 };
140 static const uint8_t *gain_xlats[11] = {140 static const uint8_t * const gain_xlats[11] = {
141 NULL, atrac3p_huff_gain_npoints2_xlat, atrac3p_huff_gain_lev1_xlat,141 NULL, atrac3p_huff_gain_npoints2_xlat, atrac3p_huff_gain_lev1_xlat,
142 atrac3p_huff_gain_lev2_xlat, atrac3p_huff_gain_lev3_xlat,142 atrac3p_huff_gain_lev2_xlat, atrac3p_huff_gain_lev3_xlat,
143 atrac3p_huff_gain_lev4_xlat, atrac3p_huff_gain_loc3_xlat,143 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
145 atrac3p_huff_gain_loc2_xlat, atrac3p_huff_gain_loc5_xlat145 atrac3p_huff_gain_loc2_xlat, atrac3p_huff_gain_loc5_xlat
146 };146 };
147 147
148 static const uint8_t *tone_cbs[7] = {148 static const uint8_t * const tone_cbs[7] = {
149 atrac3p_huff_tonebands_cb, atrac3p_huff_numwavs1_cb,149 atrac3p_huff_tonebands_cb, atrac3p_huff_numwavs1_cb,
150 atrac3p_huff_numwavs2_cb, atrac3p_huff_wav_ampsf1_cb,150 atrac3p_huff_numwavs2_cb, atrac3p_huff_wav_ampsf1_cb,
151 atrac3p_huff_wav_ampsf2_cb, atrac3p_huff_wav_ampsf3_cb,151 atrac3p_huff_wav_ampsf2_cb, atrac3p_huff_wav_ampsf3_cb,
152 atrac3p_huff_freq_cb152 atrac3p_huff_freq_cb
153 };153 };
154 static const uint8_t *tone_xlats[7] = {154 static const uint8_t * const tone_xlats[7] = {
155 NULL, NULL, atrac3p_huff_numwavs2_xlat, atrac3p_huff_wav_ampsf1_xlat,155 NULL, NULL, atrac3p_huff_numwavs2_xlat, atrac3p_huff_wav_ampsf1_xlat,
156 atrac3p_huff_wav_ampsf2_xlat, atrac3p_huff_wav_ampsf3_xlat,156 atrac3p_huff_wav_ampsf2_xlat, atrac3p_huff_wav_ampsf3_xlat,
157 atrac3p_huff_freq_xlat157 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
38/* Auditory filter center frequencies and bandwidths, in Hz.38/* Auditory filter center frequencies and bandwidths, in Hz.
39 * The last two are made up, because there is no scientific data.39 * The last two are made up, because there is no scientific data.
40 */40 */
41static uint16_t fc[] = {41static const uint16_t fc[] = {
42 50, 150, 250, 350, 450, 570, 700, 840, 1000, 1170, 1370, 1600, 1850, 2150,42 50, 150, 250, 350, 450, 570, 700, 840, 1000, 1170, 1370, 1600, 1850, 2150,
43 2500, 2900, 3400, 4000, 4800, 5800, 7000, 8500, 10500, 13500, 1700043 2500, 2900, 3400, 4000, 4800, 5800, 7000, 8500, 10500, 13500, 17000
44};44};
45 45
46static uint16_t erb[] = {46static const uint16_t erb[] = {
47 80, 100, 100, 100, 110, 120, 140, 150, 160, 190, 210, 240, 280,47 80, 100, 100, 100, 110, 120, 140, 150, 160, 190, 210, 240, 280,
48 320, 380, 450, 550, 700, 900, 1100, 1300, 1800, 2500, 3500, 450048 320, 380, 450, 550, 700, 900, 1100, 1300, 1800, 2500, 3500, 4500
49};49};
libavcodec/evrcdata.h+1−1
@@ -1451,7 +1451,7 @@ static const float * const evrc_lspq_quant_codebooks[] = { · 1450 unmodified lines
1451 evrc_lspq_quant_codebook1[0], evrc_lspq_quant_codebook2[0],1451 evrc_lspq_quant_codebook1[0], evrc_lspq_quant_codebook2[0],
1452};1452};
1453 1453
1454static const float * const *evrc_lspq_codebooks[] = {1454static const float * const * const evrc_lspq_codebooks[] = {
1455 0,1455 0,
1456 evrc_lspq_quant_codebooks,1456 evrc_lspq_quant_codebooks,
1457 0,1457 0,
libavcodec/g722dec.c+1−1
@@ -77,7 +77,7 @@ static const int16_t low_inv_quant5[32] = { · 76 unmodified lines
77 587, 473, 370, 276, 190, 110, 35, -3577 587, 473, 370, 276, 190, 110, 35, -35
78};78};
79 79
80static const int16_t *low_inv_quants[3] = { ff_g722_low_inv_quant6,80static const int16_t * const low_inv_quants[3] = { ff_g722_low_inv_quant6,
81 low_inv_quant5,81 low_inv_quant5,
82 ff_g722_low_inv_quant4 };82 ff_g722_low_inv_quant4 };
83 83
libavcodec/indeo3.c+2−2
@@ -118,8 +118,8 @@ static uint8_t requant_tab[8][128]; · 117 unmodified lines
118 */118 */
119static av_cold void build_requant_tab(void)119static av_cold void build_requant_tab(void)
120{120{
121 static int8_t offsets[8] = { 1, 1, 2, -3, -3, 3, 4, 4 };121 static const 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 };122 static const int8_t deltas [8] = { 0, 1, 0, 4, 4, 1, 0, 1 };
123 123
124 int i, j, step;124 int i, j, step;
125 125
libavcodec/indeo4data.h+1−1
@@ -61,7 +61,7 @@ static const uint8_t ivi4_horizontal_scan_4x4[16] = { · 60 unmodified lines
61 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 1561 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
62};62};
63 63
64static const uint8_t *scan_index_to_tab[15] = {64static const uint8_t * const scan_index_to_tab[15] = {
65 // for 8x8 transforms65 // for 8x8 transforms
66 ff_zigzag_direct,66 ff_zigzag_direct,
67 ivi4_alternate_scan_8x8,67 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
81 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 981 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
82};82};
83 83
84static const uint8_t *run_value_bits[2] = {84static const uint8_t * const run_value_bits[2] = {
85 run_value_bits_long, run_value_bits_short85 run_value_bits_long, run_value_bits_short
86};86};
87 87
libavcodec/movtextenc.c+1−1
@@ -41,7 +41,7 @@ static av_cold int mov_text_encode_init(AVCodecContext *avctx) · 40 unmodified lines
41 * For now, we'll use a fixed default style. When we add styling41 * For now, we'll use a fixed default style. When we add styling
42 * support, this will be generated from the ASS style.42 * support, this will be generated from the ASS style.
43 */43 */
44 static uint8_t text_sample_entry[] = {44 static const uint8_t text_sample_entry[] = {
45 0x00, 0x00, 0x00, 0x00, // uint32_t displayFlags45 0x00, 0x00, 0x00, 0x00, // uint32_t displayFlags
46 0x01, // int8_t horizontal-justification46 0x01, // int8_t horizontal-justification
47 0xFF, // int8_t vertical-justification47 0xFF, // int8_t vertical-justification
libavcodec/ppc/fdctdsp.c+1−1
@@ -59,7 +59,7 @@ · 58 unmodified lines
59#define WA (SQRT_2 * (-C3 - C5))59#define WA (SQRT_2 * (-C3 - C5))
60#define WB (SQRT_2 * (C5 - C3))60#define WB (SQRT_2 * (C5 - C3))
61 61
62static vector float fdctconsts[3] = {62static const vector float fdctconsts[3] = {
63 { W0, W1, W2, W3 },63 { W0, W1, W2, W3 },
64 { W4, W5, W6, W7 },64 { W4, W5, W6, W7 },
65 { W8, W9, WA, WB }65 { W8, W9, WA, WB }
libavcodec/sipr.c+1−1
@@ -139,7 +139,7 @@ const float ff_pow_0_5[] = { · 138 unmodified lines
139 1.0/(1 << 13), 1.0/(1 << 14), 1.0/(1 << 15), 1.0/(1 << 16)139 1.0/(1 << 13), 1.0/(1 << 14), 1.0/(1 << 15), 1.0/(1 << 16)
140};140};
141 141
142static void dequant(float *out, const int *idx, const float *cbs[])142static void dequant(float *out, const int *idx, const float * const cbs[])
143{143{
144 int i;144 int i;
145 int stride = 2;145 int stride = 2;
libavcodec/siprdata.h+1−1
@@ -206,7 +206,7 @@ static const float lsf_cb5[32][2] = { · 205 unmodified lines
206 { 0.150514, 0.034366}, { 0.186092, -0.069272}206 { 0.150514, 0.034366}, { 0.186092, -0.069272}
207};207};
208 208
209static const float *lsf_codebooks[] = {209static const float * const lsf_codebooks[] = {
210 lsf_cb1[0], lsf_cb2[0], lsf_cb3[0], lsf_cb4[0], lsf_cb5[0]210 lsf_cb1[0], lsf_cb2[0], lsf_cb3[0], lsf_cb4[0], lsf_cb5[0]
211};211};
212 212
libavcodec/wavpackenc.h+1−1
@@ -637,7 +637,7 @@ static const WavPackDecorrSpec very_high_specs[] = { · 636 unmodified lines
637 { 0, 1, { -1,18,18, 2,18, 3, 5,18, 2,18, 6, 8, 4, 5, 7,-1 } },637 { 0, 1, { -1,18,18, 2,18, 3, 5,18, 2,18, 6, 8, 4, 5, 7,-1 } },
638};638};
639 639
640static const WavPackDecorrSpec *decorr_filters[] = {640static const WavPackDecorrSpec * const decorr_filters[] = {
641 &fast_specs[0], &default_specs[0], &high_specs[0], &very_high_specs[0],641 &fast_specs[0], &default_specs[0], &high_specs[0], &very_high_specs[0],
642};642};
643 643
libavcodec/x86/mlpdsp.c+2−2
@@ -44,12 +44,12 @@ extern char ff_mlp_iirorder_2; · 43 unmodified lines
44extern char ff_mlp_iirorder_1;44extern char ff_mlp_iirorder_1;
45extern char ff_mlp_iirorder_0;45extern char ff_mlp_iirorder_0;
46 46
47static const void *firtable[9] = { &ff_mlp_firorder_0, &ff_mlp_firorder_1,47static const void * const firtable[9] = { &ff_mlp_firorder_0, &ff_mlp_firorder_1,
48 &ff_mlp_firorder_2, &ff_mlp_firorder_3,48 &ff_mlp_firorder_2, &ff_mlp_firorder_3,
49 &ff_mlp_firorder_4, &ff_mlp_firorder_5,49 &ff_mlp_firorder_4, &ff_mlp_firorder_5,
50 &ff_mlp_firorder_6, &ff_mlp_firorder_7,50 &ff_mlp_firorder_6, &ff_mlp_firorder_7,
51 &ff_mlp_firorder_8 };51 &ff_mlp_firorder_8 };
52static const void *iirtable[5] = { &ff_mlp_iirorder_0, &ff_mlp_iirorder_1,52static const void * const iirtable[5] = { &ff_mlp_iirorder_0, &ff_mlp_iirorder_1,
53 &ff_mlp_iirorder_2, &ff_mlp_iirorder_3,53 &ff_mlp_iirorder_2, &ff_mlp_iirorder_3,
54 &ff_mlp_iirorder_4 };54 &ff_mlp_iirorder_4 };
55 55
libavcodec/x86/videodsp_init.c+4−4
@@ -61,7 +61,7 @@ extern emu_edge_vfix_func ff_emu_edge_vfix20_mmx; · 60 unmodified lines
61extern emu_edge_vfix_func ff_emu_edge_vfix21_mmx;61extern emu_edge_vfix_func ff_emu_edge_vfix21_mmx;
62extern emu_edge_vfix_func ff_emu_edge_vfix22_mmx;62extern emu_edge_vfix_func ff_emu_edge_vfix22_mmx;
63#if ARCH_X86_3263#if ARCH_X86_32
64static emu_edge_vfix_func *vfixtbl_mmx[22] = {64static emu_edge_vfix_func * const vfixtbl_mmx[22] = {
65 &ff_emu_edge_vfix1_mmx, &ff_emu_edge_vfix2_mmx, &ff_emu_edge_vfix3_mmx,65 &ff_emu_edge_vfix1_mmx, &ff_emu_edge_vfix2_mmx, &ff_emu_edge_vfix3_mmx,
66 &ff_emu_edge_vfix4_mmx, &ff_emu_edge_vfix5_mmx, &ff_emu_edge_vfix6_mmx,66 &ff_emu_edge_vfix4_mmx, &ff_emu_edge_vfix5_mmx, &ff_emu_edge_vfix6_mmx,
67 &ff_emu_edge_vfix7_mmx, &ff_emu_edge_vfix8_mmx, &ff_emu_edge_vfix9_mmx,67 &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
80extern emu_edge_vfix_func ff_emu_edge_vfix20_sse;80extern emu_edge_vfix_func ff_emu_edge_vfix20_sse;
81extern emu_edge_vfix_func ff_emu_edge_vfix21_sse;81extern emu_edge_vfix_func ff_emu_edge_vfix21_sse;
82extern emu_edge_vfix_func ff_emu_edge_vfix22_sse;82extern emu_edge_vfix_func ff_emu_edge_vfix22_sse;
83static emu_edge_vfix_func *vfixtbl_sse[22] = {83static emu_edge_vfix_func * const vfixtbl_sse[22] = {
84 ff_emu_edge_vfix1_mmx, ff_emu_edge_vfix2_mmx, ff_emu_edge_vfix3_mmx,84 ff_emu_edge_vfix1_mmx, ff_emu_edge_vfix2_mmx, ff_emu_edge_vfix3_mmx,
85 ff_emu_edge_vfix4_mmx, ff_emu_edge_vfix5_mmx, ff_emu_edge_vfix6_mmx,85 ff_emu_edge_vfix4_mmx, ff_emu_edge_vfix5_mmx, ff_emu_edge_vfix6_mmx,
86 ff_emu_edge_vfix7_mmx, ff_emu_edge_vfix8_mmx, ff_emu_edge_vfix9_mmx,86 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
109extern emu_edge_hfix_func ff_emu_edge_hfix20_mmx;109extern emu_edge_hfix_func ff_emu_edge_hfix20_mmx;
110extern emu_edge_hfix_func ff_emu_edge_hfix22_mmx;110extern emu_edge_hfix_func ff_emu_edge_hfix22_mmx;
111#if ARCH_X86_32111#if ARCH_X86_32
112static emu_edge_hfix_func *hfixtbl_mmx[11] = {112static emu_edge_hfix_func * const hfixtbl_mmx[11] = {
113 ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx,113 ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx,
114 ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx,114 ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx,
115 ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_mmx, ff_emu_edge_hfix18_mmx,115 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
121extern emu_edge_hfix_func ff_emu_edge_hfix18_sse2;121extern emu_edge_hfix_func ff_emu_edge_hfix18_sse2;
122extern emu_edge_hfix_func ff_emu_edge_hfix20_sse2;122extern emu_edge_hfix_func ff_emu_edge_hfix20_sse2;
123extern emu_edge_hfix_func ff_emu_edge_hfix22_sse2;123extern emu_edge_hfix_func ff_emu_edge_hfix22_sse2;
124static emu_edge_hfix_func *hfixtbl_sse2[11] = {124static emu_edge_hfix_func * const hfixtbl_sse2[11] = {
125 ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx,125 ff_emu_edge_hfix2_mmx, ff_emu_edge_hfix4_mmx, ff_emu_edge_hfix6_mmx,
126 ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx,126 ff_emu_edge_hfix8_mmx, ff_emu_edge_hfix10_mmx, ff_emu_edge_hfix12_mmx,
127 ff_emu_edge_hfix14_mmx, ff_emu_edge_hfix16_sse2, ff_emu_edge_hfix18_sse2,127 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
80#define VIDEO_FORMAT NTSC80#define VIDEO_FORMAT NTSC
81#endif81#endif
82 82
83static int bktr_dev[] = { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2,83static const int bktr_dev[] = { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2,
84 METEOR_DEV3, METEOR_DEV_SVIDEO };84 METEOR_DEV3, METEOR_DEV_SVIDEO };
85 85
86uint8_t *video_buf;86uint8_t *video_buf;
libavdevice/opengl_enc.c+1−1
@@ -164,7 +164,7 @@ typedef struct OpenGLVertexInfo · 163 unmodified lines
164} OpenGLVertexInfo;164} OpenGLVertexInfo;
165 165
166/* defines 2 triangles to display */166/* defines 2 triangles to display */
167static GLushort g_index[6] =167static const GLushort g_index[6] =
168{168{
169 0, 1, 2,169 0, 1, 2,
170 0, 3, 2,170 0, 3, 2,
libavfilter/af_volume.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
38#include "internal.h"38#include "internal.h"
39#include "af_volume.h"39#include "af_volume.h"
40 40
41static const char *precision_str[] = {41static const char * const precision_str[] = {
42 "fixed", "float", "double"42 "fixed", "float", "double"
43};43};
44 44
libavfilter/f_perms.c+1−1
@@ -72,7 +72,7 @@ static av_cold int init(AVFilterContext *ctx) · 71 unmodified lines
72}72}
73 73
74enum perm { RO, RW };74enum perm { RO, RW };
75static const char *perm_str[2] = { "RO", "RW" };75static const char * const perm_str[2] = { "RO", "RW" };
76 76
77static int filter_frame(AVFilterLink *inlink, AVFrame *frame)77static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
78{78{
libavfilter/vf_colormatrix.c+1−1
@@ -158,7 +158,7 @@ static void calc_coefficients(AVFilterContext *ctx) · 157 unmodified lines
158 }158 }
159}159}
160 160
161static const char *color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"};161static const char * const color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"};
162 162
163static av_cold int init(AVFilterContext *ctx)163static av_cold int init(AVFilterContext *ctx)
164{164{
libavfilter/vf_drawtext.c+1−1
@@ -272,7 +272,7 @@ struct ft_error · 271 unmodified lines
272{272{
273 int err;273 int err;
274 const char *err_msg;274 const char *err_msg;
275} static ft_errors[] =275} static const ft_errors[] =
276#include FT_ERRORS_H276#include FT_ERRORS_H
277 277
278#define FT_ERRMSG(e) ft_errors[e].err_msg278#define FT_ERRMSG(e) ft_errors[e].err_msg
libavfilter/vf_overlay.c+1−1
@@ -76,7 +76,7 @@ enum EOFAction { · 75 unmodified lines
76 EOF_ACTION_PASS76 EOF_ACTION_PASS
77};77};
78 78
79static const char *eof_action_str[] = {79static const char * const eof_action_str[] = {
80 "repeat", "endall", "pass"80 "repeat", "endall", "pass"
81};81};
82 82
libavfilter/vf_rotate.c+2−2
@@ -38,7 +38,7 @@ · 37 unmodified lines
38 38
39#include <float.h>39#include <float.h>
40 40
41static const char *var_names[] = {41static const char * const var_names[] = {
42 "in_w" , "iw", ///< width of the input video42 "in_w" , "iw", ///< width of the input video
43 "in_h" , "ih", ///< height of the input video43 "in_h" , "ih", ///< height of the input video
44 "out_w", "ow", ///< width of the input video44 "out_w", "ow", ///< width of the input video
@@ -130,7 +130,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 85 unmodified lines
130 130
131static int query_formats(AVFilterContext *ctx)131static int query_formats(AVFilterContext *ctx)
132{132{
133 static enum PixelFormat pix_fmts[] = {133 static const enum PixelFormat pix_fmts[] = {
134 AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP,134 AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP,
135 AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA,135 AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA,
136 AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,136 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
254 {NULL},254 {NULL},
255};255};
256 256
257static const char *font_mimetypes[] = {257static const char * const font_mimetypes[] = {
258 "application/x-truetype-font",258 "application/x-truetype-font",
259 "application/vnd.ms-opentype",259 "application/vnd.ms-opentype",
260 "application/x-font-ttf",260 "application/x-font-ttf",
libavformat/libmodplug.c+1−1
@@ -60,7 +60,7 @@ typedef struct ModPlugContext { · 59 unmodified lines
60 AVExpr *expr; ///< parsed color eval expression60 AVExpr *expr; ///< parsed color eval expression
61} ModPlugContext;61} ModPlugContext;
62 62
63static const char *var_names[] = {63static const char * const var_names[] = {
64 "x", "y",64 "x", "y",
65 "w", "h",65 "w", "h",
66 "t",66 "t",
libavformat/mov_chan.c+1−1
@@ -344,7 +344,7 @@ static const struct MovChannelLayoutMap mov_ch_layout_map_9ch[] = { · 343 unmodified lines
344 { 0, 0 },344 { 0, 0 },
345};345};
346 346
347static const struct MovChannelLayoutMap *mov_ch_layout_map[] = {347static const struct MovChannelLayoutMap * const mov_ch_layout_map[] = {
348 mov_ch_layout_map_misc,348 mov_ch_layout_map_misc,
349 mov_ch_layout_map_1ch,349 mov_ch_layout_map_1ch,
350 mov_ch_layout_map_2ch,350 mov_ch_layout_map_2ch,
libavformat/rtspcodes.h+1−1
@@ -74,7 +74,7 @@ RTSP_STATUS_VERSION =505, · 73 unmodified lines
74RTSP_STATUS_UNSUPPORTED_OPTION =551,74RTSP_STATUS_UNSUPPORTED_OPTION =551,
75};75};
76 76
77static const av_unused char *rtsp_status_strings[] = {77static const av_unused char * const rtsp_status_strings[] = {
78[RTSP_STATUS_CONTINUE] ="Continue",78[RTSP_STATUS_CONTINUE] ="Continue",
79[RTSP_STATUS_OK] ="OK",79[RTSP_STATUS_OK] ="OK",
80[RTSP_STATUS_CREATED] ="Created",80[RTSP_STATUS_CREATED] ="Created",
libavresample/audio_mix.c+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
28#include "audio_data.h"28#include "audio_data.h"
29#include "audio_mix.h"29#include "audio_mix.h"
30 30
31static const char *coeff_type_names[] = { "q8", "q15", "flt" };31static const char * const coeff_type_names[] = { "q8", "q15", "flt" };
32 32
33struct AudioMix {33struct AudioMix {
34 AVAudioResampleContext *avr;34 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
72 72
73const char *av_get_colorspace_name(enum AVColorSpace val)73const char *av_get_colorspace_name(enum AVColorSpace val)
74{74{
75 static const char *name[] = {75 static const char * const name[] = {
76 [AVCOL_SPC_RGB] = "GBR",76 [AVCOL_SPC_RGB] = "GBR",
77 [AVCOL_SPC_BT709] = "bt709",77 [AVCOL_SPC_BT709] = "bt709",
78 [AVCOL_SPC_FCC] = "fcc",78 [AVCOL_SPC_FCC] = "fcc",
libpostproc/postprocess.c+1−1
@@ -154,7 +154,7 @@ static const struct PPFilter filters[]= · 153 unmodified lines
154 {NULL, NULL,0,0,0,0} //End Marker154 {NULL, NULL,0,0,0,0} //End Marker
155};155};
156 156
157static const char *replaceTable[]=157static const char * const replaceTable[]=
158{158{
159 "default", "hb:a,vb:a,dr:a",159 "default", "hb:a,vb:a,dr:a",
160 "de", "hb:a,vb:a,dr:a",160 "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