From ba4aeeb47375fa3ae14e83e09f823dc8012ea29d Mon Sep 17 00:00:00 2001 From: albeu Date: Thu, 26 Jun 2003 11:17:28 +0000 Subject: [PATCH] Fix SIG11 if no args given git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10338 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_bmovl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vf_bmovl.c b/libmpcodecs/vf_bmovl.c index 3db48d6dd9..87111594c2 100644 --- a/libmpcodecs/vf_bmovl.c +++ b/libmpcodecs/vf_bmovl.c @@ -432,7 +432,7 @@ vf_open(vf_instance_t* vf, char* args) vf->priv = malloc(sizeof(struct vf_priv_s)); - if( sscanf(args, "%d:%d:%s", &vf->priv->hidden, &vf->priv->opaque, filename) < 3 ) { + if(!args || sscanf(args, "%d:%d:%s", &vf->priv->hidden, &vf->priv->opaque, filename) < 3 ) { mp_msg(MSGT_VFILTER, MSGL_ERR, "vf_bmovl: Bad arguments!\n"); mp_msg(MSGT_VFILTER, MSGL_ERR, "vf_bmovl: Arguments are 'bool hidden:bool opaque:string fifo'\n"); return FALSE;