diff options
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; |