]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/libmpcodecs/vf_pp.c
vf_pp: dont pass NULL into pp, it would fail
[ffmpeg] / libavfilter / libmpcodecs / vf_pp.c
index b70eedce2c67211c9fe91c0ac18e05e38e822cac..78cce1fd7cb93c3737767b107fca281321bc89f2 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;