mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
do not call av_find_stream_info if stream is ffm, should fix stalling
Originally committed as revision 18104 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0bdd8b858f
commit
85fe4ae0d0
@ -2002,7 +2002,7 @@ 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;
|
||||||
if (av_find_stream_info(c->fmt_in) < 0) {
|
if (strcmp(s->iformat->name, "ffm") && av_find_stream_info(c->fmt_in) < 0) {
|
||||||
http_log("Could not find stream info '%s'\n", input_filename);
|
http_log("Could not find stream info '%s'\n", input_filename);
|
||||||
av_close_input_file(s);
|
av_close_input_file(s);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user