mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-21 23:00:04 +08:00
check av_find_stream_info return value
Originally committed as revision 18060 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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++)
|
||||||
|
Reference in New Issue
Block a user