[Ffmpeg-cvslog] r8358 - trunk/libavutil/sha1.c

michael subversion
Mon Mar 12 22:33:39 CET 2007


Author: michael
Date: Mon Mar 12 22:33:38 2007
New Revision: 8358

Modified:
   trunk/libavutil/sha1.c

Log:
very slightly smaller object file


Modified: trunk/libavutil/sha1.c
==============================================================================
--- trunk/libavutil/sha1.c	(original)
+++ trunk/libavutil/sha1.c	Mon Mar 12 22:33:38 2007
@@ -95,9 +95,8 @@ void av_sha1_final(AVSHA1* context, uint
         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




More information about the ffmpeg-cvslog mailing list