]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/crypto.c
lavc decoders: properly initialize AVFrame.
[ffmpeg] / libavformat / crypto.c
index 7095360c85a1947428f3bff1d466671e605d8aba..3bc33f2bb9dd980d5b976431f724a475f46b2d70 100644 (file)
@@ -48,7 +48,7 @@ typedef struct {
 #define D AV_OPT_FLAG_DECODING_PARAM
 static const AVOption options[] = {
     {"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 },
+    {"iv",  "AES decryption initialization vector", OFFSET(iv), AV_OPT_TYPE_BINARY, .flags = D },
     { NULL }
 };
 
@@ -87,7 +87,7 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
         av_log(h, AV_LOG_ERROR, "Unable to open input\n");
         goto err;
     }
-    c->aes = av_mallocz(av_aes_size);
+    c->aes = av_aes_alloc();
     if (!c->aes) {
         ret = AVERROR(ENOMEM);
         goto err;