[Ffmpeg-cvslog] r7469 - trunk/libavutil/aes.c

michael subversion
Sun Jan 14 14:37:19 CET 2007


Author: michael
Date: Sun Jan 14 14:37:19 2007
New Revision: 7469

Modified:
   trunk/libavutil/aes.c

Log:
memcpy


Modified: trunk/libavutil/aes.c
==============================================================================
--- trunk/libavutil/aes.c	(original)
+++ trunk/libavutil/aes.c	Sun Jan 14 14:37:19 2007
@@ -146,8 +146,7 @@
 
     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]];




More information about the ffmpeg-cvslog mailing list