X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffserver.c;h=cf055a53cdb5dfcf1d15ae18252a12a47308ba7d;hb=0812ad01c88a8352a13c91b9f5bc7b801229d4d0;hp=1795a2a29cc7e09c8fe189b61961cc4d64466a00;hpb=ecaf5143282cc7a8335f5e19c750de66b1ee8389;p=ffmpeg diff --git a/ffserver.c b/ffserver.c index 1795a2a29cc..cf055a53cdb 100644 --- a/ffserver.c +++ b/ffserver.c @@ -321,6 +321,11 @@ static AVLFG random_state; static FILE *logfile = NULL; /* FIXME: make ffserver work with IPv6 */ +void exit_program(int ret) +{ + exit(ret); +} + /* resolve host with also IP address parsing */ static int resolve_host(struct in_addr *sin_addr, const char *hostname) { @@ -2162,7 +2167,7 @@ static int open_input_stream(HTTPContext *c, const char *info) } s->flags |= AVFMT_FLAG_GENPTS; c->fmt_in = s; - if (strcmp(s->iformat->name, "ffm") && av_find_stream_info(c->fmt_in) < 0) { + if (strcmp(s->iformat->name, "ffm") && avformat_find_stream_info(c->fmt_in, NULL) < 0) { http_log("Could not find stream info '%s'\n", input_filename); av_close_input_file(s); return -1; @@ -3621,7 +3626,7 @@ static void build_file_streams(void) } else { /* find all the AVStreams inside and reference them in 'stream' */ - if (av_find_stream_info(infile) < 0) { + if (avformat_find_stream_info(infile, NULL) < 0) { http_log("Could not find codec parameters from '%s'\n", stream->feed_filename); av_close_input_file(infile); @@ -4672,7 +4677,7 @@ int main(int argc, char **argv) my_program_dir = getcwd(0, 0); ffserver_daemon = 1; - parse_options(argc, argv, options, NULL); + parse_options(NULL, argc, argv, options, NULL); unsetenv("http_proxy"); /* Kill the http_proxy */