ffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i "file...
[ffmpeg.git] / cmdutils.c
index f957788..feeea69 100644 (file)
@@ -281,8 +281,8 @@ unknown_opt:
                     fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt);
                     exit(1);
                 }
-            } else {
-                po->u.func_arg(arg);
+            } else if (po->u.func_arg) {
+                    po->u.func_arg(arg);
             }
             if(po->flags & OPT_EXIT)
                 exit(0);