mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
crypto: add decoding flag to options.
This commit is contained in:
parent
34ff0e2915
commit
dc86ca1ab5
@ -45,9 +45,10 @@ typedef struct {
|
|||||||
} CryptoContext;
|
} CryptoContext;
|
||||||
|
|
||||||
#define OFFSET(x) offsetof(CryptoContext, x)
|
#define OFFSET(x) offsetof(CryptoContext, x)
|
||||||
|
#define D AV_OPT_FLAG_DECODING_PARAM
|
||||||
static const AVOption options[] = {
|
static const AVOption options[] = {
|
||||||
{"key", "AES decryption key", OFFSET(key), AV_OPT_TYPE_BINARY },
|
{"key", "AES decryption key", OFFSET(key), AV_OPT_TYPE_BINARY, .flags = D },
|
||||||
{"iv", "AES decryption initialization vector", OFFSET(iv), AV_OPT_TYPE_BINARY },
|
{"iv", "AES decryption initialization vector", OFFSET(iv), AV_OPT_TYPE_BINARY, .flags = D },
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user