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>
This commit is contained in:
Reimar Döffinger
2014-08-29 00:32:32 +02:00
parent be4aac302b
commit d9e2aceb7f
32 changed files with 57 additions and 57 deletions

View File

@@ -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"
};

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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

View File

@@ -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"
};

View File

@@ -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,

View File

@@ -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",