diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-29 02:32:32 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-29 20:57:25 +0400 |
commit | d9e2aceb7f1c712a52672129ca7971872b030e1e (patch) | |
tree | 7d6518b6bf431d2ee46f926a87e3fb01101c63ec /libavfilter | |
parent | be4aac302b0cbeab6da9e3192318aad7379a6428 (diff) |
Add missing "const" all over the place.
Only "./configure --enable-gpl" on x86 was tested.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_volume.c | 2 | ||||
-rw-r--r-- | libavfilter/f_perms.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_colormatrix.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_overlay.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_rotate.c | 4 | ||||
-rw-r--r-- | libavfilter/vf_subtitles.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index e06c3b395a..9900d22e23 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/f_perms.c b/libavfilter/f_perms.c index 2c53e8cc5b..188ce91376 100644 --- a/libavfilter/f_perms.c +++ b/libavfilter/f_perms.c @@ -72,7 +72,7 @@ static av_cold int init(AVFilterContext *ctx) } enum perm { RO, RW }; -static const char *perm_str[2] = { "RO", "RW" }; +static const char * const perm_str[2] = { "RO", "RW" }; static int filter_frame(AVFilterLink *inlink, AVFrame *frame) { diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c index 91ca057fd0..df78391507 100644 --- a/libavfilter/vf_colormatrix.c +++ b/libavfilter/vf_colormatrix.c @@ -158,7 +158,7 @@ static void calc_coefficients(AVFilterContext *ctx) } } -static const char *color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"}; +static const char * const color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"}; static av_cold int init(AVFilterContext *ctx) { diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index b7a295f5f7..29cdfbbf25 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -272,7 +272,7 @@ struct ft_error { int err; const char *err_msg; -} static ft_errors[] = +} static const ft_errors[] = #include FT_ERRORS_H #define FT_ERRMSG(e) ft_errors[e].err_msg diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 1d9240cc93..80d99bdf8f 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -76,7 +76,7 @@ enum EOFAction { EOF_ACTION_PASS }; -static const char *eof_action_str[] = { +static const char * const eof_action_str[] = { "repeat", "endall", "pass" }; diff --git a/libavfilter/vf_rotate.c b/libavfilter/vf_rotate.c index 7e5b12b42d..8dec74279f 100644 --- a/libavfilter/vf_rotate.c +++ b/libavfilter/vf_rotate.c @@ -38,7 +38,7 @@ #include <float.h> -static const char *var_names[] = { +static const char * const var_names[] = { "in_w" , "iw", ///< width of the input video "in_h" , "ih", ///< height of the input video "out_w", "ow", ///< width of the input video @@ -130,7 +130,7 @@ static av_cold void uninit(AVFilterContext *ctx) static int query_formats(AVFilterContext *ctx) { - static enum PixelFormat pix_fmts[] = { + static const enum PixelFormat pix_fmts[] = { AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA, diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 558e509e4e..4fa11744c4 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -254,7 +254,7 @@ static const AVOption subtitles_options[] = { {NULL}, }; -static const char *font_mimetypes[] = { +static const char * const font_mimetypes[] = { "application/x-truetype-font", "application/vnd.ms-opentype", "application/x-font-ttf", |