lavf: reorganize URLProtocols
Instead of a linked list constructed at av_register_all(), store them in a constant array of pointers. Since no registration is necessary now, this removes some global state from lavf. This will also allow the urlprotocol layer caller to limit the available protocols in a simple and flexible way in the following commits.
This commit is contained in:
@@ -265,7 +265,7 @@ static const AVClass ffrtmphttp_class = {
|
||||
.version = LIBAVUTIL_VERSION_INT,
|
||||
};
|
||||
|
||||
URLProtocol ff_ffrtmphttp_protocol = {
|
||||
const URLProtocol ff_ffrtmphttp_protocol = {
|
||||
.name = "ffrtmphttp",
|
||||
.url_open = rtmp_http_open,
|
||||
.url_read = rtmp_http_read,
|
||||
|
Reference in New Issue
Block a user