diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-03-20 01:07:22 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-03-20 01:07:22 +0000 |
commit | 20f93c3ccf03f258a5bb658565665a68b61f4996 (patch) | |
tree | 8a95f94e375fa861e38167d12f53adce24ec7b4d | |
parent | 77553ae360b81d2e22d3c2d77020e83a44eeb22b (diff) | |
download | ffmpeg-20f93c3ccf03f258a5bb658565665a68b61f4996.tar.gz |
check av_find_stream_info return value
Originally committed as revision 18060 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffserver.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 9a2cbc9502..fd2502405e 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1986,7 +1986,11 @@ static int open_input_stream(HTTPContext *c, const char *info) } s->flags |= AVFMT_FLAG_GENPTS; c->fmt_in = s; - av_find_stream_info(c->fmt_in); + if (av_find_stream_info(c->fmt_in) < 0) { + http_log("Could not find stream info '%s'\n", input_filename); + av_close_input_file(s); + return -1; + } /* open each parser */ for(i=0;i<s->nb_streams;i++) |