changeset 10337:744d56a47d09

Fix SIG11 if no args given
author albeu
date Thu, 26 Jun 2003 11:17:28 +0000
parents 8803033c8db4
children 70d012c2ee69
files libmpcodecs/vf_bmovl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_bmovl.c	Wed Jun 25 20:12:36 2003 +0000
+++ b/libmpcodecs/vf_bmovl.c	Thu Jun 26 11:17:28 2003 +0000
@@ -432,7 +432,7 @@
 
     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;