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.h | |
parent | 838abfc1d711b42beaf401153b36ef80922b85b8 (diff) | |
download | ffmpeg-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.h')
-rw-r--r-- | libavformat/avio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index c3c0b73f2c..7fbce32b6c 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -249,6 +249,11 @@ typedef struct AVIOContext { * This is current internal only, do not use from outside. */ int short_seek_threshold; + + /** + * ',' separated list of allowed protocols. + */ + const char *protocol_whitelist; } AVIOContext; /* unbuffered I/O */ |