Mercurial > mplayer.hg
diff libmpcodecs/vf_geq.c @ 20466:a5d299e877b2
make vf_geq read whitespace in equation param
author | ods15 |
---|---|
date | Sat, 28 Oct 2006 09:50:22 +0000 |
parents | a5924600c1f7 |
children | cdf6ab5cf76d |
line wrap: on
line diff
--- a/libmpcodecs/vf_geq.c Sat Oct 28 09:44:18 2006 +0000 +++ b/libmpcodecs/vf_geq.c Sat Oct 28 09:50:22 2006 +0000 @@ -176,7 +176,7 @@ vf->priv=av_malloc(sizeof(struct vf_priv_s)); memset(vf->priv, 0, sizeof(struct vf_priv_s)); - if (args) sscanf(args, "%1999s:%1999s:%1999s", eq[0], eq[1], eq[2]); + if (args) sscanf(args, "%1999[^:]:%1999[^:]:%1999[^:]", eq[0], eq[1], eq[2]); if (!eq[1][0]) strncpy(eq[1], eq[0], sizeof(eq[0])-1); if (!eq[2][0]) strncpy(eq[2], eq[1], sizeof(eq[0])-1);