changeset 290:8f02801da0f8 libavutil

its faster to copy the data to the stack it seems ...
author michael
date Mon, 12 Mar 2007 21:14:33 +0000
parents 18a98b19af3f
children 78b11473f66a
files sha1.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sha1.c	Mon Mar 12 21:07:38 2007 +0000
+++ b/sha1.c	Mon Mar 12 21:14:33 2007 +0000
@@ -29,7 +29,10 @@
 
 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];