You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
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:
@@ -181,7 +181,7 @@ static int64_t concat_seek(URLContext *h, int64_t pos, int whence)
|
||||
return result;
|
||||
}
|
||||
|
||||
URLProtocol ff_concat_protocol = {
|
||||
const URLProtocol ff_concat_protocol = {
|
||||
.name = "concat",
|
||||
.url_open = concat_open,
|
||||
.url_read = concat_read,
|
||||
|
||||
Reference in New Issue
Block a user