# HG changeset patch # User diego # Date 1267204866 0 # Node ID 4d15378da04a11629faf4962c7a2c461a7970b88 # Parent 491e06b404027463ff91dffc7153d9d3c5835332 Mark vf_opts/vf_opts_fields structures as const. diff -r 491e06b40402 -r 4d15378da04a libmpcodecs/vf_delogo.c --- 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, diff -r 491e06b40402 -r 4d15378da04a libmpcodecs/vf_format.c --- 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, diff -r 491e06b40402 -r 4d15378da04a libmpcodecs/vf_hue.c --- 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, diff -r 491e06b40402 -r 4d15378da04a libmpcodecs/vf_noformat.c --- 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,