[FFmpeg-cvslog] avformat/crypto: fix variable shadowing

Marvin Scholz git at videolan.org
Fri Sep 13 01:36:33 EEST 2024


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Sep  8 21:38:12 2024 +0200| [074bf9faf7a0960b0e879b024121ae7230cefb75] | committer: Marvin Scholz

avformat/crypto: fix variable shadowing

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

 libavformat/crypto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index cd462e7b9d..868f6ddc25 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -62,7 +62,7 @@ typedef struct CryptoContext {
 #define OFFSET(x) offsetof(CryptoContext, x)
 #define D AV_OPT_FLAG_DECODING_PARAM
 #define E AV_OPT_FLAG_ENCODING_PARAM
-static const AVOption options[] = {
+static const AVOption crypto_options[] = {
     {"key", "AES encryption/decryption key",                   OFFSET(key),         AV_OPT_TYPE_BINARY, .flags = D|E },
     {"iv",  "AES encryption/decryption initialization vector", OFFSET(iv),          AV_OPT_TYPE_BINARY, .flags = D|E },
     {"decryption_key", "AES decryption key",                   OFFSET(decrypt_key), AV_OPT_TYPE_BINARY, .flags = D },
@@ -75,7 +75,7 @@ static const AVOption options[] = {
 static const AVClass crypto_class = {
     .class_name     = "crypto",
     .item_name      = av_default_item_name,
-    .option         = options,
+    .option         = crypto_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
 



More information about the ffmpeg-cvslog mailing list