From 200130450075fbf446aeb91f163d6d8037fa2e2d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Mar 2007 10:48:22 +0000 Subject: [PATCH] put state[5] last so no padding is needed on arch where uint64_t needs 8byte alignment Originally committed as revision 8379 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/sha1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/sha1.c b/libavutil/sha1.c index 6c7eb26af0..82416e8fe7 100644 --- a/libavutil/sha1.c +++ b/libavutil/sha1.c @@ -6,9 +6,9 @@ #include "sha1.h" typedef struct AVSHA1 { - uint32_t state[5]; uint64_t count; uint8_t buffer[64]; + uint32_t state[5]; } AVSHA1; #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))