Commit e6f0deab authored by Baptiste Coudurier's avatar Baptiste Coudurier

check av_open_input_stream error

Originally committed as revision 13874 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fbc63144
......@@ -2494,7 +2494,10 @@ static int http_receive_data(HTTPContext *c)
if (!fmt_in)
goto fail;
av_open_input_stream(&s, pb, c->stream->feed_filename, fmt_in, NULL);
if (av_open_input_stream(&s, pb, c->stream->feed_filename, fmt_in, NULL) < 0) {
av_free(pb);
goto fail;
}
/* Now we have the actual streams */
if (s->nb_streams != feed->nb_streams) {
......
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