summaryrefslogtreecommitdiff
path: root/libavformat/options_table.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-30 23:25:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-19 04:37:30 +0200
commit057ea2a9823a6e9f95a2f8eba05e401b8636b561 (patch)
tree80657296d1920754da26e00a76c179386c8609ef /libavformat/options_table.h
parent5c8eb16769e581f828ce420373c558c190185cc1 (diff)
downloadffmpeg-057ea2a9823a6e9f95a2f8eba05e401b8636b561.tar.gz
avformat: Add format_whitelist
This allows restricting demuxers to a list of needed ones for improved security Note, some demuxers themselfs open other demuxers, these are only restricted if AVOptions are forwarded to them. Please check that your code does that. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/options_table.h')
-rw-r--r--libavformat/options_table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/options_table.h b/libavformat/options_table.h
index 4ac8b3d20e..5ac3fba052 100644
--- a/libavformat/options_table.h
+++ b/libavformat/options_table.h
@@ -97,6 +97,8 @@ static const AVOption avformat_options[] = {
{"experimental", "allow non-standardized experimental variants", 0, AV_OPT_TYPE_CONST, {.i64 = FF_COMPLIANCE_EXPERIMENTAL }, INT_MIN, INT_MAX, D|E, "strict"},
{"max_ts_probe", "maximum number of packets to read while waiting for the first timestamp", OFFSET(max_ts_probe), AV_OPT_TYPE_INT, { .i64 = 50 }, 0, INT_MAX, D },
{"dump_separator", "set information dump field separator", OFFSET(dump_separator), AV_OPT_TYPE_STRING, {.str = ", "}, CHAR_MIN, CHAR_MAX, D|E},
+{"codec_whitelist", "List of decoders that are allowed to be used", OFFSET(codec_whitelist), AV_OPT_TYPE_STRING, { .str = NULL }, CHAR_MIN, CHAR_MAX, D },
+{"format_whitelist", "List of demuxers that are allowed to be used", OFFSET(format_whitelist), AV_OPT_TYPE_STRING, { .str = NULL }, CHAR_MIN, CHAR_MAX, D },
{NULL},
};