diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-01 01:24:52 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-19 06:36:52 +0400 |
commit | 5c8eb16769e581f828ce420373c558c190185cc1 (patch) | |
tree | 538dc04189f8313b8e2375280274532e0a80c45d /libavcodec/options_table.h | |
parent | e23af4662dc667cdb6b7cd297f8cc0160a63e9bf (diff) |
avcodec: add codec_whitelist
This allows restricting decoders to a list of needed ones for improved security
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/options_table.h')
-rw-r--r-- | libavcodec/options_table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h index 840d054edc..77841b55fe 100644 --- a/libavcodec/options_table.h +++ b/libavcodec/options_table.h @@ -487,6 +487,7 @@ static const AVOption avcodec_options[] = { {"tb", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_TB }, 0, 0, V|D|E, "field_order" }, {"bt", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_BT }, 0, 0, V|D|E, "field_order" }, {"dump_separator", "set information dump field separator", OFFSET(dump_separator), AV_OPT_TYPE_STRING, {.str = NULL}, CHAR_MIN, CHAR_MAX, A|V|S|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 }, {NULL}, }; |