summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-30 23:24:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-19 04:36:52 +0200
commit5c8eb16769e581f828ce420373c558c190185cc1 (patch)
tree538dc04189f8313b8e2375280274532e0a80c45d /libavcodec/avcodec.h
parente23af4662dc667cdb6b7cd297f8cc0160a63e9bf (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/avcodec.h')
-rw-r--r--libavcodec/avcodec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 6e44a9068b..42eb57b76a 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3112,6 +3112,13 @@ typedef struct AVCodecContext {
*/
uint8_t *dump_separator;
+ /**
+ * ',' seperated list of allowed decoders.
+ * If NULL then all are allowed
+ * - encoding: unused
+ * - decoding: set by user through AVOPtions (NO direct access)
+ */
+ char *codec_whitelist;
} AVCodecContext;
AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx);