[FFmpeg-cvslog] Add const to static arrays where it was forgotten.

Reimar Döffinger git at videolan.org
Sat Nov 5 15:45:26 CET 2011


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat Nov  5 14:49:52 2011 +0100| [d78473334e9fdf991e354c11e3f7649449ea8791] | committer: Reimar Döffinger

Add const to static arrays where it was forgotten.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d78473334e9fdf991e354c11e3f7649449ea8791
---

 libavfilter/af_aconvert.c   |    2 +-
 libavfilter/asrc_aevalsrc.c |    2 +-
 libavfilter/vf_boxblur.c    |    2 +-
 libavfilter/vf_crop.c       |    2 +-
 libavfilter/vf_drawtext.c   |    2 +-
 libavfilter/vf_lut.c        |    4 ++--
 libavfilter/vf_overlay.c    |    2 +-
 libavfilter/vf_pad.c        |    2 +-
 libavfilter/vf_scale.c      |    2 +-
 libavfilter/vf_select.c     |    2 +-
 libavfilter/vf_setpts.c     |    2 +-
 libavfilter/vf_settb.c      |    2 +-
 12 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/libavfilter/af_aconvert.c b/libavfilter/af_aconvert.c
index fef096c..e1caa62 100644
--- a/libavfilter/af_aconvert.c
+++ b/libavfilter/af_aconvert.c
@@ -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##_planar, AVFILTER_PLANAR)
 
-static struct RematrixFunctionInfo {
+static const struct RematrixFunctionInfo {
     int64_t in_chlayout, out_chlayout;
     int planar, sfmt;
     void (*func)();
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c
index c59617e..52c3e73 100644
--- a/libavfilter/asrc_aevalsrc.c
+++ b/libavfilter/asrc_aevalsrc.c
@@ -31,7 +31,7 @@
 #include "avfilter.h"
 #include "internal.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "n",            ///< number of frame
     "t",            ///< timestamp expressed in seconds
     "s",            ///< sample rate
diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c
index 1f8e0f6..ea8520d 100644
--- a/libavfilter/vf_boxblur.c
+++ b/libavfilter/vf_boxblur.c
@@ -30,7 +30,7 @@
 #include "libavutil/pixdesc.h"
 #include "avfilter.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "w",
     "h",
     "cw",
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 9215b1e..ef845fe 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -32,7 +32,7 @@
 #include "libavutil/imgutils.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_h", "ih",   ///< height of the input video
     "out_w", "ow",  ///< width  of the cropped video
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 7466b70..2f309c8 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -46,7 +46,7 @@
 #include FT_FREETYPE_H
 #include FT_GLYPH_H
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "w",                      ///< width  of the input video
     "h",                      ///< height of the input video
     "tw", "text_w",           ///< width  of the rendered text
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
index 211a294..a7f2f7b 100644
--- a/libavfilter/vf_lut.c
+++ b/libavfilter/vf_lut.c
@@ -30,7 +30,7 @@
 #include "avfilter.h"
 #include "internal.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "w",        ///< width of the input video
     "h",        ///< height of the input video
     "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);
 
-#endif
\ No newline at end of file
+#endif
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 6fa10ae..6ea90dd 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -35,7 +35,7 @@
 #include "internal.h"
 #include "drawutils.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "main_w",    "W", ///< width  of the main    video
     "main_h",    "H", ///< height of the main    video
     "overlay_w", "w", ///< width  of the overlay video
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index fc4a8be..27bf42f 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -35,7 +35,7 @@
 #include "libavutil/mathematics.h"
 #include "drawutils.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "in_w",   "iw",
     "in_h",   "ih",
     "out_w",  "ow",
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 05f9f85..5f21bf6 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -31,7 +31,7 @@
 #include "libavutil/avassert.h"
 #include "libswscale/swscale.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "in_w",   "iw",
     "in_h",   "ih",
     "out_w",  "ow",
diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c
index 262cccf..2e583e4 100644
--- a/libavfilter/vf_select.c
+++ b/libavfilter/vf_select.c
@@ -27,7 +27,7 @@
 #include "libavutil/fifo.h"
 #include "avfilter.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "TB",                ///< timebase
 
     "pts",               ///< original pts in the file of the frame
diff --git a/libavfilter/vf_setpts.c b/libavfilter/vf_setpts.c
index 1223be5..e35204e 100644
--- a/libavfilter/vf_setpts.c
+++ b/libavfilter/vf_setpts.c
@@ -30,7 +30,7 @@
 #include "libavutil/mathematics.h"
 #include "avfilter.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "INTERLACED",  ///< tell if the current frame is interlaced
     "N",           ///< frame number (starting at zero)
     "POS",         ///< original position in the file of the frame
diff --git a/libavfilter/vf_settb.c b/libavfilter/vf_settb.c
index e74ee65..624cda8 100644
--- a/libavfilter/vf_settb.c
+++ b/libavfilter/vf_settb.c
@@ -30,7 +30,7 @@
 #include "avfilter.h"
 #include "internal.h"
 
-static const char *var_names[] = {
+static const char * const var_names[] = {
     "AVTB",   /* default timebase 1/AV_TIME_BASE */
     "intb",   /* input timebase */
     NULL



More information about the ffmpeg-cvslog mailing list