aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-09 19:58:56 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-09 20:08:03 +0100
commit0103bc67fdd54f68c864de483e350014700b4740 (patch)
treef1a95bdd50b1327fc5b772de698089705c52165c
parentd5af3fb1c53e55654f409904a3491e77db02fa5a (diff)
downloadffmpeg-0103bc67fdd54f68c864de483e350014700b4740.tar.gz
avformat/crypto: fix key vs iv typo
Fixes Ticket 4167 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 2d0117f816b92510546caf26414961ee6088f961) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index c1754b0b11..22529fb521 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -122,7 +122,7 @@ static int crypto_open2(URLContext *h, const char *uri, int flags, AVDictionary
c->key, c->keylen, "decryption key")) < 0)
goto err;
if ((ret = set_aes_arg(c, &c->decrypt_iv, &c->decrypt_ivlen,
- c->key, c->keylen, "decryption IV")) < 0)
+ c->iv, c->ivlen, "decryption IV")) < 0)
goto err;
}
@@ -132,7 +132,7 @@ static int crypto_open2(URLContext *h, const char *uri, int flags, AVDictionary
if (ret < 0)
goto err;
if ((ret = set_aes_arg(c, &c->encrypt_iv, &c->encrypt_ivlen,
- c->key, c->keylen, "encryption IV")) < 0)
+ c->iv, c->ivlen, "encryption IV")) < 0)
goto err;
}