[MPlayer-cvslog] r20274 - trunk/libmpcodecs/vf_geq.c
michael
subversion at mplayerhq.hu
Mon Oct 16 20:37:41 CEST 2006
Author: michael
Date: Mon Oct 16 20:37:40 2006
New Revision: 20274
Modified:
trunk/libmpcodecs/vf_geq.c
Log:
200 byte is too little
Modified: trunk/libmpcodecs/vf_geq.c
==============================================================================
--- trunk/libmpcodecs/vf_geq.c (original)
+++ trunk/libmpcodecs/vf_geq.c Mon Oct 16 20:37:40 2006
@@ -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;
}
More information about the MPlayer-cvslog
mailing list