diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-30 02:17:50 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-02 03:39:34 +0100 |
commit | 1dba8371d93cf1c83bcd5c432d921905206a60f3 (patch) | |
tree | cf349434cd61e6fc77160e28bf076768fc1af019 /libavformat/avio_internal.h | |
parent | 838abfc1d711b42beaf401153b36ef80922b85b8 (diff) | |
download | ffmpeg-streaming-1dba8371d93cf1c83bcd5c432d921905206a60f3.zip ffmpeg-streaming-1dba8371d93cf1c83bcd5c432d921905206a60f3.tar.gz |
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 <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r-- | libavformat/avio_internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. * |