diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 03:25:20 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 03:25:20 +0000 |
commit | e6f0deab806f518f55ee54b970f70de1948bbf5d (patch) | |
tree | 728d3d1608f9c8fc9c38fe909a16ba3e529f85b3 /ffserver.c | |
parent | fbc63144287bcb031a61df38962fefdc43967f8b (diff) | |
download | ffmpeg-e6f0deab806f518f55ee54b970f70de1948bbf5d.tar.gz |
check av_open_input_stream error
Originally committed as revision 13874 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 2449a8095f..24996d3534 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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) { |