changeset 30707:4d15378da04a

Mark vf_opts/vf_opts_fields structures as const.
author diego
date Fri, 26 Feb 2010 17:21:06 +0000
parents 491e06b40402
children 8a96d56b01f0
files libmpcodecs/vf_delogo.c libmpcodecs/vf_format.c libmpcodecs/vf_hue.c libmpcodecs/vf_noformat.c
diffstat 4 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_delogo.c	Fri Feb 26 17:07:22 2010 +0000
+++ b/libmpcodecs/vf_delogo.c	Fri Feb 26 17:21:06 2010 +0000
@@ -233,7 +233,7 @@
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
     { "x", ST_OFF(xoff), CONF_TYPE_INT, 0, 0, 0, NULL },
     { "y", ST_OFF(yoff), CONF_TYPE_INT, 0, 0, 0, NULL },
     { "w", ST_OFF(lw), CONF_TYPE_INT, 0, 0, 0, NULL },
@@ -243,7 +243,7 @@
     { NULL, NULL, 0, 0, 0, 0, NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
     "delogo",
     sizeof(struct vf_priv_s),
     &vf_priv_dflt,
--- a/libmpcodecs/vf_format.c	Fri Feb 26 17:07:22 2010 +0000
+++ b/libmpcodecs/vf_format.c	Fri Feb 26 17:21:06 2010 +0000
@@ -53,12 +53,12 @@
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
   {"fmt", ST_OFF(fmt), CONF_TYPE_IMGFMT, 0,0 ,0, NULL},
   { NULL, NULL, 0, 0, 0, 0,  NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
   "format",
   sizeof(struct vf_priv_s),
   &vf_priv_dflt,
--- a/libmpcodecs/vf_hue.c	Fri Feb 26 17:07:22 2010 +0000
+++ b/libmpcodecs/vf_hue.c	Fri Feb 26 17:21:06 2010 +0000
@@ -177,13 +177,13 @@
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
   {"hue", ST_OFF(hue), CONF_TYPE_FLOAT, M_OPT_RANGE,-180.0 ,180.0, NULL},
   {"saturation", ST_OFF(saturation), CONF_TYPE_FLOAT, M_OPT_RANGE,-10.0 ,10.0, NULL},
   { NULL, NULL, 0, 0, 0, 0,  NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
   "hue",
   sizeof(struct vf_priv_s),
   &vf_priv_dflt,
--- a/libmpcodecs/vf_noformat.c	Fri Feb 26 17:07:22 2010 +0000
+++ b/libmpcodecs/vf_noformat.c	Fri Feb 26 17:21:06 2010 +0000
@@ -53,12 +53,12 @@
 }
 
 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
-static m_option_t vf_opts_fields[] = {
+static const m_option_t vf_opts_fields[] = {
   {"fmt", ST_OFF(fmt), CONF_TYPE_IMGFMT, 0,0 ,0, NULL},
   { NULL, NULL, 0, 0, 0, 0,  NULL }
 };
 
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
   "noformat",
   sizeof(struct vf_priv_s),
   &vf_priv_dflt,