From 5d1b5393488303f39c4877d3d5a1af378409b2d0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 16 Jan 2007 19:30:43 +0000 Subject: [PATCH] 30byte smaller object file Originally committed as revision 7553 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/aes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavutil/aes.c b/libavutil/aes.c index d5f3afe05d..4acf2fba47 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -165,9 +165,9 @@ int av_aes_init(AVAES *a, uint8_t *key, int key_bits, int decrypt) { memcpy(tk, key, KC*4); - for(t= 0; t < (rounds+1)*4;) { - memcpy(a->round_key[0][t], tk, KC*4); - t+= KC; + for(t= 0; t < (rounds+1)*16;) { + memcpy(a->round_key[0][0]+t, tk, KC*4); + t+= KC*4; for(i = 0; i < 4; i++) tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]];