diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-12 21:33:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-12 21:33:38 +0000 |
commit | c6fd617aea137c69b985a237c1e4111c15dd0680 (patch) | |
tree | 5f3a5f07f7e4ac2eb502c2e5a70620d01053927d /libavutil/sha1.c | |
parent | 11bf0eb69a874fdcc7c9e21deda087c4a6dfbb5e (diff) | |
download | ffmpeg-c6fd617aea137c69b985a237c1e4111c15dd0680.tar.gz |
very slightly smaller object file
Originally committed as revision 8358 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/sha1.c')
-rw-r--r-- | libavutil/sha1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavutil/sha1.c b/libavutil/sha1.c index 4314055c1b..05f7426155 100644 --- a/libavutil/sha1.c +++ b/libavutil/sha1.c @@ -95,9 +95,8 @@ void av_sha1_final(AVSHA1* context, uint8_t digest[20]){ 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 |