[Ffmpeg-cvslog] r8353 - trunk/libavutil/sha1.c
michael
subversion
Mon Mar 12 22:14:33 CET 2007
Author: michael
Date: Mon Mar 12 22:14:33 2007
New Revision: 8353
Modified:
trunk/libavutil/sha1.c
Log:
its faster to copy the data to the stack it seems ...
Modified: trunk/libavutil/sha1.c
==============================================================================
--- trunk/libavutil/sha1.c (original)
+++ trunk/libavutil/sha1.c Mon Mar 12 22:14:33 2007
@@ -29,7 +29,10 @@ typedef struct AVSHA1 {
static void transform(uint32_t state[5], uint8_t buffer[64]){
unsigned int a, b, c, d, e, i;
- uint32_t* block= buffer;
+ uint32_t block[16];
+
+ memcpy(block, buffer, 64);
+
/* Copy context->state[] to working vars */
a = state[0];
b = state[1];
More information about the ffmpeg-cvslog
mailing list