diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-02 14:45:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-02 14:45:08 +0200 |
commit | cea3c9b281246f5ff5d27b1a02e3434b3ee178a6 (patch) | |
tree | ea3cb556d19f5db572c1bd96ca278357758111e0 /ffserver.c | |
parent | e43f3c8858778caba832810d555e4b67ed90a7b7 (diff) | |
download | ffmpeg-cea3c9b281246f5ff5d27b1a02e3434b3ee178a6.tar.gz |
ffserver: check return code of avio_alloc_context()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 4803b96cd4..06218e0faf 100644 --- a/ffserver.c +++ b/ffserver.c @@ -2649,6 +2649,9 @@ static int http_receive_data(HTTPContext *c) pb = avio_alloc_context(c->buffer, c->buffer_end - c->buffer, 0, NULL, NULL, NULL, NULL); + if (!pb) + goto fail; + pb->seekable = 0; s->pb = pb; |