diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-04 20:38:46 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-04 20:38:46 +0000 |
commit | c184bb44db00e524b273eca4e0cc3138fd945713 (patch) | |
tree | fc5af5ac11fd43d60b1466a243fbbc029ee1b8a7 /libavutil/aes.c | |
parent | 377723b22c168eee7d79d029ca2598ff8b11ed14 (diff) | |
download | ffmpeg-c184bb44db00e524b273eca4e0cc3138fd945713.tar.gz |
aes: fix array index out of bounds warning
Originally committed as revision 24048 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/aes.c')
-rw-r--r-- | libavutil/aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c index 66cf926a14..59f1cf34e8 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -141,7 +141,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[0][sizeof(enc_multbl)/sizeof(enc_multbl[0][0])-1]){ + if(!enc_multbl[FF_ARRAY_ELEMS(enc_multbl)-1][FF_ARRAY_ELEMS(enc_multbl[0])-1]){ j=1; for(i=0; i<255; i++){ alog8[i]= |