* commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3': Mark some arrays that never change as const.
Showing the changes to libavformat (4 of 26 files). Show all
Unified · Split
| @@ -1498,9 +1498,9 @@ static int select_cur_seq_no(HLSContext *c, struct playlist *pls) · 1497 unmodified lines | ||
| 1498 | 1498 | static int save_avio_options(AVFormatContext *s) |
| 1499 | 1499 | { |
| 1500 | 1500 | HLSContext *c = s->priv_data; |
| 1501 | − static const char *opts[] = { | |
| 1501 | + static const char * const opts[] = { | |
| 1502 | 1502 | "headers", "http_proxy", "user_agent", "user-agent", "cookies", NULL }; |
| 1503 | − const char **opt = opts; | |
| 1503 | + const char * const * opt = opts; | |
| 1504 | 1504 | uint8_t *buf; |
| 1505 | 1505 | int ret = 0; |
| 1506 | 1506 | |
| @@ -102,7 +102,7 @@ const char ff_id3v2_3_tags[][4] = { · 101 unmodified lines | ||
| 102 | 102 | { 0 }, |
| 103 | 103 | }; |
| 104 | 104 | |
| 105 | −const char *ff_id3v2_picture_types[21] = { | |
| 105 | +const char * const ff_id3v2_picture_types[21] = { | |
| 106 | 106 | "Other", |
| 107 | 107 | "32x32 pixels 'file icon'", |
| 108 | 108 | "Other file icon", |
| @@ -180,6 +180,6 @@ extern const char ff_id3v2_3_tags[][4]; · 179 unmodified lines | ||
| 180 | 180 | |
| 181 | 181 | extern const CodecMime ff_id3v2_mime_tags[]; |
| 182 | 182 | |
| 183 | −extern const char *ff_id3v2_picture_types[21]; | |
| 183 | +extern const char * const ff_id3v2_picture_types[21]; | |
| 184 | 184 | |
| 185 | 185 | #endif /* AVFORMAT_ID3V2_H */ |
| @@ -1204,7 +1204,7 @@ static const MXFCodecUL mxf_data_essence_container_uls[] = { · 1203 unmodified lines | ||
| 1204 | 1204 | { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE }, |
| 1205 | 1205 | }; |
| 1206 | 1206 | |
| 1207 | −static const char* const mxf_data_essence_descriptor[] = { | |
| 1207 | +static const char * const mxf_data_essence_descriptor[] = { | |
| 1208 | 1208 | "vbi_vanc_smpte_436M", |
| 1209 | 1209 | }; |
| 1210 | 1210 | |