vf_pp: dont pass NULL into pp, it would fail
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Jul 2012 17:14:51 +0000 (19:14 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Jul 2012 17:14:51 +0000 (19:14 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/libmpcodecs/vf_pp.c

index b70eedc..78cce1f 100644 (file)
@@ -186,7 +186,7 @@ static int vf_open(vf_instance_t *vf, char *args){
     vf->priv->outfmt=vf_match_csp(&vf->next,fmt_list,IMGFMT_YV12);
     if(!vf->priv->outfmt) return 0; // no csp match :(
 
-    if(args){
+    if(args && *args){
         hex_mode= strtol(args, &endptr, 0);
         if(*endptr){
             name= args;