1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

aes: fix array index out of bounds warning

Originally committed as revision 24048 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2010-07-04 20:38:46 +00:00
parent 377723b22c
commit c184bb44db

View File

@ -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 log8[256];
uint8_t alog8[512]; 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; j=1;
for(i=0; i<255; i++){ for(i=0; i<255; i++){
alog8[i]= alog8[i]=