[FFmpeg-cvslog] crypto: add decoding flag to options.

Anton Khirnov git at videolan.org
Fri Nov 11 02:53:05 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Nov  5 14:07:13 2011 +0100| [dc86ca1ab54c04f15214e6fc023d6dfc627aee34] | committer: Anton Khirnov

crypto: add decoding flag to options.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc86ca1ab54c04f15214e6fc023d6dfc627aee34
---

 libavformat/crypto.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index 2f0e2bd..ea41747 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 }
 };
 



More information about the ffmpeg-cvslog mailing list