Commit c184bb44 authored by Måns Rullgård's avatar Måns Rullgård

aes: fix array index out of bounds warning

Originally committed as revision 24048 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 377723b2
......@@ -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]=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment