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:
parent
225e84e745
commit
2758cdedfb
28 changed files with 227 additions and 121 deletions
|
@ -324,7 +324,7 @@ static const AVClass ffrtmpcrypt_class = {
|
|||
.version = LIBAVUTIL_VERSION_INT,
|
||||
};
|
||||
|
||||
URLProtocol ff_ffrtmpcrypt_protocol = {
|
||||
const URLProtocol ff_ffrtmpcrypt_protocol = {
|
||||
.name = "ffrtmpcrypt",
|
||||
.url_open = rtmpe_open,
|
||||
.url_read = rtmpe_read,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue