[FFmpeg-cvslog] xtea: fix unused variable warning for config_small

Michael Niedermayer git at videolan.org
Sat Dec 29 04:34:04 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 29 03:37:46 2012 +0100| [c5bea1b02b16ae7d9b07459da3916b8c6c0322d8] | committer: Michael Niedermayer

xtea: fix unused variable warning for config_small

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavutil/xtea.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/xtea.c b/libavutil/xtea.c
index d4eede7..e729c91 100644
--- a/libavutil/xtea.c
+++ b/libavutil/xtea.c
@@ -39,10 +39,12 @@ static void xtea_crypt_ecb(AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
                            int decrypt, uint8_t *iv)
 {
     uint32_t v0, v1;
+#if !CONFIG_SMALL
     uint32_t k0 = ctx->key[0];
     uint32_t k1 = ctx->key[1];
     uint32_t k2 = ctx->key[2];
     uint32_t k3 = ctx->key[3];
+#endif
 
     v0 = AV_RB32(src);
     v1 = AV_RB32(src + 4);



More information about the ffmpeg-cvslog mailing list