From 79d4c96a1a708f8da145121cee118c7bdd596344 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 13 May 2007 19:14:18 +0000 Subject: [PATCH] correct last element inited check Originally committed as revision 9018 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/aes.c b/libavutil/aes.c index 55ae0d4f39..b29e735d49 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -128,7 +128,7 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt) { uint8_t log8[256]; uint8_t alog8[512]; - if(!enc_multbl[4][1023]){ + if(!enc_multbl[0][sizeof(enc_multbl)/sizeof(enc_multbl[0][0])-1]){ j=1; for(i=0; i<255; i++){ alog8[i]=