Mercurial > mplayer.hg
changeset 20268:9f7284368fa1
200 byte is too little
author | michael |
---|---|
date | Mon, 16 Oct 2006 18:37:40 +0000 |
parents | b0c44d5b9d6c |
children | 4a804e013007 |
files | libmpcodecs/vf_geq.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; }