static const char *my_program_name;
-static const char *config_filename = "/etc/ffserver.conf";
+static const char *config_filename;
static int ffserver_debug;
static int no_launch;
parse_options(NULL, argc, argv, options, NULL);
+ if (!config_filename)
+ config_filename = av_strdup("/etc/ffserver.conf");
+
unsetenv("http_proxy"); /* Kill the http_proxy */
av_lfg_init(&random_state, av_get_random_seed());
fprintf(stderr, "Incorrect config file - exiting.\n");
exit(1);
}
+ av_freep(&config_filename);
/* open log file if needed */
if (logfilename[0] != '\0') {