Commit cea3c9b2 authored by Michael Niedermayer's avatar Michael Niedermayer

ffserver: check return code of avio_alloc_context()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e43f3c88
......@@ -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;
......
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