diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-07-03 10:09:36 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-02-01 10:42:59 +0100 |
commit | fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3 (patch) | |
tree | e9e285e1f4634de77b1657420b5121d109bed249 /libavfilter | |
parent | b420a27e74750b60d2e064236afb10be06a38ace (diff) | |
download | ffmpeg-fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3.tar.gz |
Mark some arrays that never change as const.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_volume.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_libopencv.c | 4 | ||||
-rw-r--r-- | libavfilter/vf_overlay.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 11d85a17eb..0ec42b031e 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -38,7 +38,7 @@ #include "internal.h" #include "af_volume.h" -static const char *precision_str[] = { +static const char * const precision_str[] = { "fixed", "float", "double" }; diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index d119251712..5668c8e8e0 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -219,7 +219,7 @@ static const AVClass drawtext_class = { #define FT_ERRORDEF(e, v, s) { (e), (s) }, #define FT_ERROR_END_LIST { 0, NULL } }; -static struct ft_error { +static const struct ft_error { int err; const char *err_msg; } ft_errors[] = diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index 50d02f84a8..5a97e4bfb6 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -321,7 +321,7 @@ typedef struct OCVFilterEntry { void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg); } OCVFilterEntry; -static OCVFilterEntry ocv_filter_entries[] = { +static const OCVFilterEntry ocv_filter_entries[] = { { "dilate", sizeof(DilateContext), dilate_init, dilate_uninit, dilate_end_frame_filter }, { "erode", sizeof(DilateContext), dilate_init, dilate_uninit, erode_end_frame_filter }, { "smooth", sizeof(SmoothContext), smooth_init, NULL, smooth_end_frame_filter }, @@ -333,7 +333,7 @@ static av_cold int init(AVFilterContext *ctx) int i; for (i = 0; i < FF_ARRAY_ELEMS(ocv_filter_entries); i++) { - OCVFilterEntry *entry = &ocv_filter_entries[i]; + const OCVFilterEntry *entry = &ocv_filter_entries[i]; if (!strcmp(s->name, entry->name)) { s->init = entry->init; s->uninit = entry->uninit; diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 2fa791d001..fb30993260 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -66,7 +66,7 @@ enum EOFAction { EOF_ACTION_PASS }; -static const char *eof_action_str[] = { +static const char * const eof_action_str[] = { "repeat", "endall", "pass" }; |