diff options
author | parazyd <parazyd@dyne.org> | 2021-02-28 23:47:03 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-03-11 23:26:37 +0100 |
commit | ed4c2e183bc61414abb421b2bf19ac44e436da06 (patch) | |
tree | f528402aca234c75ba371e450b333188b11882ea /libavformat/gopher.c | |
parent | e690aa6a8dfa9a04c260af0eacc4c2978ad1a5fc (diff) | |
download | ffmpeg-ed4c2e183bc61414abb421b2bf19ac44e436da06.tar.gz |
avformat/gopher: Add default_whitelist to ff_gopher_protocol
Signed-off-by: parazyd <parazyd@dyne.org>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/gopher.c')
-rw-r--r-- | libavformat/gopher.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/gopher.c b/libavformat/gopher.c index 8b6d14a1f7..7c88ab01a8 100644 --- a/libavformat/gopher.c +++ b/libavformat/gopher.c @@ -110,13 +110,13 @@ static int gopher_read(URLContext *h, uint8_t *buf, int size) return len; } - const URLProtocol ff_gopher_protocol = { - .name = "gopher", - .url_open = gopher_open, - .url_read = gopher_read, - .url_write = gopher_write, - .url_close = gopher_close, - .priv_data_size = sizeof(GopherContext), - .flags = URL_PROTOCOL_FLAG_NETWORK, + .name = "gopher", + .url_open = gopher_open, + .url_read = gopher_read, + .url_write = gopher_write, + .url_close = gopher_close, + .priv_data_size = sizeof(GopherContext), + .flags = URL_PROTOCOL_FLAG_NETWORK, + .default_whitelist = "gopher,tcp" }; |