comparison libmpcodecs/vf_geq.c @ 20268:9f7284368fa1

200 byte is too little
author michael
date Mon, 16 Oct 2006 18:37:40 +0000
parents 5f216140e72b
children eaddc65c500a
comparison
equal deleted inserted replaced
20267:b0c44d5b9d6c 20268:9f7284368fa1
55 #include "vf.h" 55 #include "vf.h"
56 #include "libvo/fastmemcpy.h" 56 #include "libvo/fastmemcpy.h"
57 57
58 58
59 struct vf_priv_s { 59 struct vf_priv_s {
60 char eq[3][200]; 60 char eq[3][2000];
61 int framenum; 61 int framenum;
62 mp_image_t *mpi; 62 mp_image_t *mpi;
63 }; 63 };
64 64
65 static int config(struct vf_instance_s* vf, 65 static int config(struct vf_instance_s* vf,
197 // vf->get_image=get_image; 197 // vf->get_image=get_image;
198 vf->uninit=uninit; 198 vf->uninit=uninit;
199 vf->priv=av_malloc(sizeof(struct vf_priv_s)); 199 vf->priv=av_malloc(sizeof(struct vf_priv_s));
200 memset(vf->priv, 0, sizeof(struct vf_priv_s)); 200 memset(vf->priv, 0, sizeof(struct vf_priv_s));
201 201
202 if (args) sscanf(args, "%199s:%199s:%199s", vf->priv->eq[0], vf->priv->eq[1], vf->priv->eq[2]); 202 if (args) sscanf(args, "%1999s:%1999s:%1999s", vf->priv->eq[0], vf->priv->eq[1], vf->priv->eq[2]);
203 203
204 if(!vf->priv->eq[1][0]) strncpy(vf->priv->eq[1], vf->priv->eq[0], 199); 204 if(!vf->priv->eq[1][0]) strncpy(vf->priv->eq[1], vf->priv->eq[0], sizeof(vf->priv->eq[0])-1);
205 if(!vf->priv->eq[2][0]) strncpy(vf->priv->eq[2], vf->priv->eq[1], 199); 205 if(!vf->priv->eq[2][0]) strncpy(vf->priv->eq[2], vf->priv->eq[1], sizeof(vf->priv->eq[0])-1);
206 206
207 return 1; 207 return 1;
208 } 208 }
209 209
210 vf_info_t vf_info_geq = { 210 vf_info_t vf_info_geq = {