Originally committed as revision 18060 to svn://svn.ffmpeg.org/ffmpeg/trunk
Baptiste Coudurier authored on 2009/03/20 10:07:22... | ... |
@@ -1986,7 +1986,11 @@ static int open_input_stream(HTTPContext *c, const char *info) |
1986 | 1986 |
} |
1987 | 1987 |
s->flags |= AVFMT_FLAG_GENPTS; |
1988 | 1988 |
c->fmt_in = s; |
1989 |
- av_find_stream_info(c->fmt_in); |
|
1989 |
+ if (av_find_stream_info(c->fmt_in) < 0) { |
|
1990 |
+ http_log("Could not find stream info '%s'\n", input_filename); |
|
1991 |
+ av_close_input_file(s); |
|
1992 |
+ return -1; |
|
1993 |
+ } |
|
1990 | 1994 |
|
1991 | 1995 |
/* open each parser */ |
1992 | 1996 |
for(i=0;i<s->nb_streams;i++) |