aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/sha1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-12 21:14:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-12 21:14:33 +0000
commit3479b72bc28a2eaffa3202ba8ed8194558081f93 (patch)
tree4070bd89aed00c84ab1f93366908179963c9929c /libavutil/sha1.c
parentae76034cbb87460fd19841c51164f086e5c8dcf5 (diff)
downloadffmpeg-3479b72bc28a2eaffa3202ba8ed8194558081f93.tar.gz
its faster to copy the data to the stack it seems ...
Originally committed as revision 8353 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/sha1.c')
-rw-r--r--libavutil/sha1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/sha1.c b/libavutil/sha1.c
index 6ab8c25346..4708542f4a 100644
--- a/libavutil/sha1.c
+++ b/libavutil/sha1.c
@@ -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];