summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_ass.c
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-09 06:58:32 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-09 06:58:32 +0000
commitf713cb0faf11287bd143bb2cf2a187ead31ca869 (patch)
tree952a70f268df9e71ceb55ee9429a9a0df49c4023 /libmpcodecs/vf_ass.c
parent549d3be0c7fcd1290a210434d89c46f0e47c5623 (diff)
downloadmpv-f713cb0faf11287bd143bb2cf2a187ead31ca869.tar.bz2
mpv-f713cb0faf11287bd143bb2cf2a187ead31ca869.tar.xz
begin moving const filter data to .text/.rodata sections
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24997 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_ass.c')
-rw-r--r--libmpcodecs/vf_ass.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpcodecs/vf_ass.c b/libmpcodecs/vf_ass.c
index 9ce50cf006..9f4c91961a 100644
--- a/libmpcodecs/vf_ass.c
+++ b/libmpcodecs/vf_ass.c
@@ -51,7 +51,7 @@
#define rgba2v(c) ( (( 450*_r(c) - 376*_g(c) - 73*_b(c)) >> 10) + 128 )
-static struct vf_priv_s {
+static const struct vf_priv_s {
int outh, outw;
unsigned int outfmt;
@@ -64,7 +64,7 @@ static struct vf_priv_s {
unsigned char* planes[3];
unsigned char* dirty_rows;
-} const vf_priv_dflt;
+} vf_priv_dflt;
extern int opt_screen_size_x;
extern int opt_screen_size_y;
@@ -372,7 +372,7 @@ static void uninit(struct vf_instance_s* vf)
free(vf->priv->dirty_rows);
}
-static unsigned int fmt_list[]={
+static const unsigned int fmt_list[]={
IMGFMT_YV12,
IMGFMT_I420,
IMGFMT_IYUV,
@@ -405,19 +405,19 @@ static int open(vf_instance_t *vf, char* args)
}
#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[] = {
{"auto", ST_OFF(auto_insert), CONF_TYPE_FLAG, 0 , 0, 1, NULL},
{ NULL, NULL, 0, 0, 0, 0, NULL }
};
-static m_struct_t vf_opts = {
+static const m_struct_t vf_opts = {
"ass",
sizeof(struct vf_priv_s),
&vf_priv_dflt,
vf_opts_fields
};
-vf_info_t vf_info_ass = {
+const vf_info_t vf_info_ass = {
"Render ASS/SSA subtitles",
"ass",
"Evgeniy Stepanov",