Mercurial > libavutil.hg
changeset 295:e96e6ae1c3fa libavutil
very slightly smaller object file
author | michael |
---|---|
date | Mon, 12 Mar 2007 21:33:38 +0000 |
parents | 97f5321b12ad |
children | 5a85142df236 |
files | sha1.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/sha1.c Mon Mar 12 21:29:39 2007 +0000 +++ b/sha1.c Mon Mar 12 21:33:38 2007 +0000 @@ -95,9 +95,8 @@ av_sha1_update(context, "\0", 1); } av_sha1_update(context, &finalcount, 8); /* Should cause a transform() */ - for (i = 0; i < 20; i++) { - digest[i] = context->state[i>>2] >> ((3-(i & 3)) * 8) ; - } + for(i=0; i<5; i++) + ((uint32_t*)digest)[i]= be2me_32(context->state[i]); } // use the following to test