OSDN Git Service

avconv: move bitstream filters to options context.
[coroid/libav_saccubus.git] / avserver.c
index 2b028a3..df9d07d 100644 (file)
@@ -320,6 +320,11 @@ static AVLFG random_state;
 
 static FILE *logfile = NULL;
 
+void exit_program(int ret)
+{
+    exit(ret);
+}
+
 /* FIXME: make avserver work with IPv6 */
 /* resolve host with also IP address parsing */
 static int resolve_host(struct in_addr *sin_addr, const char *hostname)
@@ -4671,7 +4676,7 @@ int main(int argc, char **argv)
     my_program_dir = getcwd(0, 0);
     avserver_daemon = 1;
 
-    parse_options(argc, argv, options, NULL);
+    parse_options(NULL, argc, argv, options, NULL);
 
     unsetenv("http_proxy");             /* Kill the http_proxy */