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>
This commit is contained in:
Michael Niedermayer
2014-09-30 23:24:52 +02:00
parent e23af4662d
commit 5c8eb16769
3 changed files with 14 additions and 0 deletions

View File

@@ -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);