mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
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:
@@ -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"
|
||||
};
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user