OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11bf0eb
)
very slightly smaller object file
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Mar 2007 21:33:38 +0000
(21:33 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Mar 2007 21:33:38 +0000
(21:33 +0000)
Originally committed as revision 8358 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/sha1.c
patch
|
blob
|
history
diff --git
a/libavutil/sha1.c
b/libavutil/sha1.c
index
4314055
..
05f7426
100644
(file)
--- 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