avio: deprecate url_open_buf
It's only used in one place and does the same thing as avio_alloc_context. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
eda4cf92d7
commit
83fddaeb81
@@ -2721,7 +2721,8 @@ static int http_receive_data(HTTPContext *c)
|
||||
if (!fmt_in)
|
||||
goto fail;
|
||||
|
||||
url_open_buf(&pb, c->buffer, c->buffer_end - c->buffer, URL_RDONLY);
|
||||
pb = avio_alloc_context(c->buffer, c->buffer_end - c->buffer,
|
||||
0, NULL, NULL, NULL, NULL);
|
||||
pb->is_streamed = 1;
|
||||
|
||||
if (av_open_input_stream(&s, pb, c->stream->feed_filename, fmt_in, NULL) < 0) {
|
||||
|
Reference in New Issue
Block a user