summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-16 18:37:40 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-16 18:37:40 +0000
commitc6fcd1fe5d6fd2fd9c24ee3ce9673f34b99e7dee (patch)
treeefc893c45e409e78adb7b71d41b772d5f09436de /libmpcodecs
parent00df73054e1cdeb984a575ae964bef7e8fabb54a (diff)
downloadmpv-c6fcd1fe5d6fd2fd9c24ee3ce9673f34b99e7dee.tar.bz2
mpv-c6fcd1fe5d6fd2fd9c24ee3ce9673f34b99e7dee.tar.xz
200 byte is too little
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20274 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_geq.c8
1 files changed, 4 insertions, 4 deletions
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;
}