From c6fcd1fe5d6fd2fd9c24ee3ce9673f34b99e7dee Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 16 Oct 2006 18:37:40 +0000 Subject: 200 byte is too little git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20274 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_geq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vf_geq.c b/libmpcodecs/vf_geq.c index b7ad8dd9a9..ee1bf3a1af 100644 --- a/libmpcodecs/vf_geq.c +++ b/libmpcodecs/vf_geq.c @@ -57,7 +57,7 @@ double ff_eval(char *s, double *const_value, const char **const_name, struct vf_priv_s { - char eq[3][200]; + char eq[3][2000]; int framenum; mp_image_t *mpi; }; @@ -199,10 +199,10 @@ static int open(vf_instance_t *vf, char* args){ vf->priv=av_malloc(sizeof(struct vf_priv_s)); memset(vf->priv, 0, sizeof(struct vf_priv_s)); - if (args) sscanf(args, "%199s:%199s:%199s", vf->priv->eq[0], vf->priv->eq[1], vf->priv->eq[2]); + if (args) sscanf(args, "%1999s:%1999s:%1999s", vf->priv->eq[0], vf->priv->eq[1], vf->priv->eq[2]); - if(!vf->priv->eq[1][0]) strncpy(vf->priv->eq[1], vf->priv->eq[0], 199); - if(!vf->priv->eq[2][0]) strncpy(vf->priv->eq[2], vf->priv->eq[1], 199); + if(!vf->priv->eq[1][0]) strncpy(vf->priv->eq[1], vf->priv->eq[0], sizeof(vf->priv->eq[0])-1); + if(!vf->priv->eq[2][0]) strncpy(vf->priv->eq[2], vf->priv->eq[1], sizeof(vf->priv->eq[0])-1); return 1; } -- cgit v1.2.3