Commit bf27f744 authored by bcoudurier's avatar bcoudurier

check av_find_stream_info return value

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18060 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 26c60f7d
...@@ -1986,7 +1986,11 @@ static int open_input_stream(HTTPContext *c, const char *info) ...@@ -1986,7 +1986,11 @@ static int open_input_stream(HTTPContext *c, const char *info)
} }
s->flags |= AVFMT_FLAG_GENPTS; s->flags |= AVFMT_FLAG_GENPTS;
c->fmt_in = s; 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 */ /* open each parser */
for(i=0;i<s->nb_streams;i++) for(i=0;i<s->nb_streams;i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment