summaryrefslogtreecommitdiff
path: root/libavformat/crypto.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-05 14:07:13 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-10 11:37:38 +0100
commitdc86ca1ab54c04f15214e6fc023d6dfc627aee34 (patch)
tree50a6386c3eef89b9a3eff6e20844c937f624caf3 /libavformat/crypto.c
parent34ff0e2915005964bf9465a3ff3a405c6e45791b (diff)
downloadffmpeg-dc86ca1ab54c04f15214e6fc023d6dfc627aee34.tar.gz
crypto: add decoding flag to options.
Diffstat (limited to 'libavformat/crypto.c')
-rw-r--r--libavformat/crypto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index 2f0e2bd1ee..ea417470b6 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -45,9 +45,10 @@ typedef struct {
} CryptoContext;
#define OFFSET(x) offsetof(CryptoContext, x)
+#define D AV_OPT_FLAG_DECODING_PARAM
static const AVOption options[] = {
- {"key", "AES decryption key", OFFSET(key), AV_OPT_TYPE_BINARY },
- {"iv", "AES decryption initialization vector", OFFSET(iv), 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, .flags = D },
{ NULL }
};