[FFmpeg-cvslog] r24048 - trunk/libavutil/aes.c

mru subversion
Sun Jul 4 22:38:47 CEST 2010


Author: mru
Date: Sun Jul  4 22:38:46 2010
New Revision: 24048

Log:
aes: fix array index out of bounds warning

Modified:
   trunk/libavutil/aes.c

Modified: trunk/libavutil/aes.c
==============================================================================
--- trunk/libavutil/aes.c	Sun Jul  4 22:02:27 2010	(r24047)
+++ trunk/libavutil/aes.c	Sun Jul  4 22:38:46 2010	(r24048)
@@ -141,7 +141,7 @@ int av_aes_init(AVAES *a, const uint8_t 
     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]=



More information about the ffmpeg-cvslog mailing list