changeset 976:0a6c0fb069d2 libavutil

aes: fix array index out of bounds warning
author mru
date Sun, 04 Jul 2010 20:38:46 +0000
parents c0a0cf0c61c7
children 2cbad2391250
files aes.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aes.c	Sat Jul 03 17:06:12 2010 +0000
+++ b/aes.c	Sun Jul 04 20:38:46 2010 +0000
@@ -141,7 +141,7 @@
     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]=