diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-14 13:37:19 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-14 13:37:19 +0000 |
commit | 7acc1a27bc27a74d2e9862dc22f403dfec09d267 (patch) | |
tree | ec7331c820a1420dc69e3256aa9b29566a406bef /libavutil | |
parent | 1070eba2a2b05083a99a939b18eee0d7786afa9a (diff) | |
download | ffmpeg-7acc1a27bc27a74d2e9862dc22f403dfec09d267.tar.gz |
memcpy
Originally committed as revision 7469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/aes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c index 0aa115087e..f06c4a6e6a 100644 --- a/libavutil/aes.c +++ b/libavutil/aes.c @@ -146,8 +146,7 @@ AVAES *av_aes_init(uint8_t *key, int key_bits) { for(t= 0; t < (rounds+1)*4; ) { for(j = 0; (j < KC) && (t < (rounds+1)*4); j++, t++) - for(i = 0; i < 4; i++) - a->round_key[0][t][i] = tk[j][i]; + memcpy(a->round_key[0][t], tk[j], 4); for(i = 0; i < 4; i++) tk[0][i] ^= sbox[tk[KC-1][(i+1)&3]]; |