From 1dba8371d93cf1c83bcd5c432d921905206a60f3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 30 Jan 2016 02:17:50 +0100 Subject: avformat: add protocol_whitelist Note to maintainers: update tools Note to maintainers: set a default whitelist for your protocol If that makes no sense then consider to set "none" and thus require the user to specify a white-list for sub-protocols to be opened Note, testing and checking for missing changes is needed Reviewed-by: Andreas Cadhalpun Signed-off-by: Michael Niedermayer --- libavformat/avio_internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/avio_internal.h') diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h index ad50567..f7c8588 100644 --- a/libavformat/avio_internal.h +++ b/libavformat/avio_internal.h @@ -149,6 +149,10 @@ int ffio_fdopen(AVIOContext **s, URLContext *h); */ int ffio_open_null_buf(AVIOContext **s); +int ffio_open_whitelist(AVIOContext **s, const char *url, int flags, + const AVIOInterruptCB *int_cb, AVDictionary **options, + const char *whitelist); + /** * Close a null buffer. * -- cgit v1.1