# HG changeset patch # User michael # Date 1161023860 0 # Node ID 9f7284368fa11f074d8c1b77217c57886a7c34fc # Parent b0c44d5b9d6c24d950418206b53caeaa9790eaf4 200 byte is too little diff -r b0c44d5b9d6c -r 9f7284368fa1 libmpcodecs/vf_geq.c --- a/libmpcodecs/vf_geq.c Mon Oct 16 16:11:04 2006 +0000 +++ b/libmpcodecs/vf_geq.c Mon Oct 16 18:37:40 2006 +0000 @@ -57,7 +57,7 @@ struct vf_priv_s { - char eq[3][200]; + char eq[3][2000]; int framenum; mp_image_t *mpi; }; @@ -199,10 +199,10 @@ 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; }