Browse Source

crypto: add decoding flag to options.

tags/n0.9
Anton Khirnov 14 years ago
parent
commit
dc86ca1ab5
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavformat/crypto.c

+ 3
- 2
libavformat/crypto.c View File

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



Loading…
Cancel
Save