[FFmpeg-devel] [PATCH 4/8] Properly check for the last element of enc_multbl.

Diego 'Flameeyes' Pettenò flameeyes
Thu Oct 2 16:39:12 CEST 2008

This patch removes a subscript warning issued by ICC, and ensures that
the proper byte is accessed even if the enc_mltbl wasn't linear.

Not sure if it's important actually...

 libavutil/aes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/aes.c b/libavutil/aes.c
index 5030dac..3480da5 100644
--- a/libavutil/aes.c
+++ b/libavutil/aes.c
@@ -130,7 +130,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[sizeof(enc_multbl)/sizeof(enc_multbl[0])-1][sizeof(enc_multbl[0])/sizeof(enc_multbl[0][0])-1]){
         for(i=0; i<255; i++){

More information about the ffmpeg-devel mailing list