Fix SIG11 if no args given

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10338 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2003-06-26 11:17:28 +00:00
parent 69063f84ad
commit ba4aeeb473
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ vf_open(vf_instance_t* vf, char* args)
vf->priv = malloc(sizeof(struct vf_priv_s)); 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: Bad arguments!\n");
mp_msg(MSGT_VFILTER, MSGL_ERR, "vf_bmovl: Arguments are 'bool hidden:bool opaque:string fifo'\n"); mp_msg(MSGT_VFILTER, MSGL_ERR, "vf_bmovl: Arguments are 'bool hidden:bool opaque:string fifo'\n");
return FALSE; return FALSE;