mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Add const to static arrays where it was forgotten.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
a010b56ebc
commit
d78473334e
@ -99,7 +99,7 @@ REMATRIX_FUNC_SIG(stereo_remix_planar)
|
|||||||
REGISTER_FUNC_PACKING(INCHLAYOUT, OUTCHLAYOUT, FUNC##_packed, AVFILTER_PACKED) \
|
REGISTER_FUNC_PACKING(INCHLAYOUT, OUTCHLAYOUT, FUNC##_packed, AVFILTER_PACKED) \
|
||||||
REGISTER_FUNC_PACKING(INCHLAYOUT, OUTCHLAYOUT, FUNC##_planar, AVFILTER_PLANAR)
|
REGISTER_FUNC_PACKING(INCHLAYOUT, OUTCHLAYOUT, FUNC##_planar, AVFILTER_PLANAR)
|
||||||
|
|
||||||
static struct RematrixFunctionInfo {
|
static const struct RematrixFunctionInfo {
|
||||||
int64_t in_chlayout, out_chlayout;
|
int64_t in_chlayout, out_chlayout;
|
||||||
int planar, sfmt;
|
int planar, sfmt;
|
||||||
void (*func)();
|
void (*func)();
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"n", ///< number of frame
|
"n", ///< number of frame
|
||||||
"t", ///< timestamp expressed in seconds
|
"t", ///< timestamp expressed in seconds
|
||||||
"s", ///< sample rate
|
"s", ///< sample rate
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "libavutil/pixdesc.h"
|
#include "libavutil/pixdesc.h"
|
||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"w",
|
"w",
|
||||||
"h",
|
"h",
|
||||||
"cw",
|
"cw",
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
#include "libavutil/mathematics.h"
|
#include "libavutil/mathematics.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"in_w", "iw", ///< width of the input video
|
"in_w", "iw", ///< width of the input video
|
||||||
"in_h", "ih", ///< height of the input video
|
"in_h", "ih", ///< height of the input video
|
||||||
"out_w", "ow", ///< width of the cropped video
|
"out_w", "ow", ///< width of the cropped video
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
#include FT_FREETYPE_H
|
#include FT_FREETYPE_H
|
||||||
#include FT_GLYPH_H
|
#include FT_GLYPH_H
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"w", ///< width of the input video
|
"w", ///< width of the input video
|
||||||
"h", ///< height of the input video
|
"h", ///< height of the input video
|
||||||
"tw", "text_w", ///< width of the rendered text
|
"tw", "text_w", ///< width of the rendered text
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"w", ///< width of the input video
|
"w", ///< width of the input video
|
||||||
"h", ///< height of the input video
|
"h", ///< height of the input video
|
||||||
"val", ///< input value for the pixel
|
"val", ///< input value for the pixel
|
||||||
@ -380,4 +380,4 @@ static int negate_init(AVFilterContext *ctx, const char *args, void *opaque)
|
|||||||
|
|
||||||
DEFINE_LUT_FILTER(negate, "Negate input video.", negate_init);
|
DEFINE_LUT_FILTER(negate, "Negate input video.", negate_init);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "drawutils.h"
|
#include "drawutils.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"main_w", "W", ///< width of the main video
|
"main_w", "W", ///< width of the main video
|
||||||
"main_h", "H", ///< height of the main video
|
"main_h", "H", ///< height of the main video
|
||||||
"overlay_w", "w", ///< width of the overlay video
|
"overlay_w", "w", ///< width of the overlay video
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "libavutil/mathematics.h"
|
#include "libavutil/mathematics.h"
|
||||||
#include "drawutils.h"
|
#include "drawutils.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"in_w", "iw",
|
"in_w", "iw",
|
||||||
"in_h", "ih",
|
"in_h", "ih",
|
||||||
"out_w", "ow",
|
"out_w", "ow",
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libswscale/swscale.h"
|
#include "libswscale/swscale.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"in_w", "iw",
|
"in_w", "iw",
|
||||||
"in_h", "ih",
|
"in_h", "ih",
|
||||||
"out_w", "ow",
|
"out_w", "ow",
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "libavutil/fifo.h"
|
#include "libavutil/fifo.h"
|
||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"TB", ///< timebase
|
"TB", ///< timebase
|
||||||
|
|
||||||
"pts", ///< original pts in the file of the frame
|
"pts", ///< original pts in the file of the frame
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "libavutil/mathematics.h"
|
#include "libavutil/mathematics.h"
|
||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"INTERLACED", ///< tell if the current frame is interlaced
|
"INTERLACED", ///< tell if the current frame is interlaced
|
||||||
"N", ///< frame number (starting at zero)
|
"N", ///< frame number (starting at zero)
|
||||||
"POS", ///< original position in the file of the frame
|
"POS", ///< original position in the file of the frame
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
static const char *var_names[] = {
|
static const char * const var_names[] = {
|
||||||
"AVTB", /* default timebase 1/AV_TIME_BASE */
|
"AVTB", /* default timebase 1/AV_TIME_BASE */
|
||||||
"intb", /* input timebase */
|
"intb", /* input timebase */
|
||||||
NULL
|
NULL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user