| ... | ... |
@@ -48,13 +48,13 @@ static const OptionDef options[]; |
| 48 | 48 |
static const char *input_filename; |
| 49 | 49 |
static AVInputFormat *iformat = NULL; |
| 50 | 50 |
|
| 51 |
-static const char *binary_unit_prefixes [] = { "", "Ki", "Mi", "Gi", "Ti", "Pi" };
|
|
| 52 |
-static const char *decimal_unit_prefixes[] = { "", "K" , "M" , "G" , "T" , "P" };
|
|
| 51 |
+static const char *const binary_unit_prefixes [] = { "", "Ki", "Mi", "Gi", "Ti", "Pi" };
|
|
| 52 |
+static const char *const decimal_unit_prefixes[] = { "", "K" , "M" , "G" , "T" , "P" };
|
|
| 53 | 53 |
|
| 54 |
-static const char *unit_second_str = "s" ; |
|
| 55 |
-static const char *unit_hertz_str = "Hz" ; |
|
| 56 |
-static const char *unit_byte_str = "byte" ; |
|
| 57 |
-static const char *unit_bit_per_second_str = "bit/s"; |
|
| 54 |
+static const char unit_second_str[] = "s" ; |
|
| 55 |
+static const char unit_hertz_str[] = "Hz" ; |
|
| 56 |
+static const char unit_byte_str[] = "byte" ; |
|
| 57 |
+static const char unit_bit_per_second_str[] = "bit/s"; |
|
| 58 | 58 |
|
| 59 | 59 |
void exit_program(int ret) |
| 60 | 60 |
{
|
| ... | ... |
@@ -1865,7 +1865,7 @@ static int http_parse_request(HTTPContext *c) |
| 1865 | 1865 |
|
| 1866 | 1866 |
static void fmt_bytecount(AVIOContext *pb, int64_t count) |
| 1867 | 1867 |
{
|
| 1868 |
- static const char *suffix = " kMGTP"; |
|
| 1868 |
+ static const char suffix[] = " kMGTP"; |
|
| 1869 | 1869 |
const char *s; |
| 1870 | 1870 |
|
| 1871 | 1871 |
for (s = suffix; count >= 100000 && s[1]; count /= 1000, s++); |
| ... | ... |
@@ -1015,7 +1015,7 @@ static int decode_scalefactors(AACContext *ac, float sf[120], GetBitContext *gb, |
| 1015 | 1015 |
int offset[3] = { global_gain, global_gain - 90, 0 };
|
| 1016 | 1016 |
int clipped_offset; |
| 1017 | 1017 |
int noise_flag = 1; |
| 1018 |
- static const char *sf_str[3] = { "Global gain", "Noise gain", "Intensity stereo position" };
|
|
| 1018 |
+ static const char *const sf_str[3] = { "Global gain", "Noise gain", "Intensity stereo position" };
|
|
| 1019 | 1019 |
for (g = 0; g < ics->num_window_groups; g++) {
|
| 1020 | 1020 |
for (i = 0; i < ics->max_sfb;) {
|
| 1021 | 1021 |
int run_end = band_type_run_end[idx]; |
| ... | ... |
@@ -66,7 +66,7 @@ typedef struct VP8EncoderContext {
|
| 66 | 66 |
} VP8Context; |
| 67 | 67 |
|
| 68 | 68 |
/** String mappings for enum vp8e_enc_control_id */ |
| 69 |
-static const char *ctlidstr[] = {
|
|
| 69 |
+static const char *const ctlidstr[] = {
|
|
| 70 | 70 |
[VP8E_UPD_ENTROPY] = "VP8E_UPD_ENTROPY", |
| 71 | 71 |
[VP8E_UPD_REFERENCE] = "VP8E_UPD_REFERENCE", |
| 72 | 72 |
[VP8E_USE_REFERENCE] = "VP8E_USE_REFERENCE", |
| ... | ... |
@@ -49,7 +49,7 @@ |
| 49 | 49 |
#include FT_FREETYPE_H |
| 50 | 50 |
#include FT_GLYPH_H |
| 51 | 51 |
|
| 52 |
-static const char *var_names[] = {
|
|
| 52 |
+static const char *const var_names[] = {
|
|
| 53 | 53 |
"E", |
| 54 | 54 |
"PHI", |
| 55 | 55 |
"PI", |
| ... | ... |
@@ -64,8 +64,8 @@ static const char *var_names[] = {
|
| 64 | 64 |
NULL |
| 65 | 65 |
}; |
| 66 | 66 |
|
| 67 |
-static const char *fun2_names[] = {
|
|
| 68 |
- "rand", |
|
| 67 |
+static const char *const fun2_names[] = {
|
|
| 68 |
+ "rand" |
|
| 69 | 69 |
}; |
| 70 | 70 |
|
| 71 | 71 |
static double drand(void *opaque, double min, double max) |
| ... | ... |
@@ -30,7 +30,7 @@ |
| 30 | 30 |
#include "libavutil/mathematics.h" |
| 31 | 31 |
#include "avfilter.h" |
| 32 | 32 |
|
| 33 |
-static const char *var_names[] = {
|
|
| 33 |
+static const char *const var_names[] = {
|
|
| 34 | 34 |
"E", ///< Euler number |
| 35 | 35 |
"INTERLACED", ///< tell if the current frame is interlaced |
| 36 | 36 |
"N", ///< frame number (starting at zero) |
| ... | ... |
@@ -514,7 +514,7 @@ static EbmlSyntax matroska_clusters[] = {
|
| 514 | 514 |
{ 0 }
|
| 515 | 515 |
}; |
| 516 | 516 |
|
| 517 |
-static const char *matroska_doctypes[] = { "matroska", "webm" };
|
|
| 517 |
+static const char *const matroska_doctypes[] = { "matroska", "webm" };
|
|
| 518 | 518 |
|
| 519 | 519 |
/* |
| 520 | 520 |
* Return: Whether we reached the end of a level in the hierarchy or not. |
| ... | ... |
@@ -543,13 +543,13 @@ int av_expr_parse_and_eval(double *d, const char *s, |
| 543 | 543 |
#undef printf |
| 544 | 544 |
#include <string.h> |
| 545 | 545 |
|
| 546 |
-static double const_values[] = {
|
|
| 546 |
+static const double const_values[] = {
|
|
| 547 | 547 |
M_PI, |
| 548 | 548 |
M_E, |
| 549 | 549 |
0 |
| 550 | 550 |
}; |
| 551 | 551 |
|
| 552 |
-static const char *const_names[] = {
|
|
| 552 |
+static const char *const const_names[] = {
|
|
| 553 | 553 |
"PI", |
| 554 | 554 |
"E", |
| 555 | 555 |
0 |