# HG changeset patch # User lu_zero # Date 1197493121 0 # Node ID aedb9d18c7cfe89da7f93cd04df3e2fc6186b367 # Parent bc871e7ac0dc825b2478b5d7fcbf34278f07e199 Provide sha1 to outside applications Patch from Diego Petten flameeyesATgmailDOTcom diff -r bc871e7ac0dc -r aedb9d18c7cf Makefile --- a/Makefile Sat Nov 24 10:08:02 2007 +0000 +++ b/Makefile Wed Dec 12 20:58:41 2007 +0000 @@ -16,6 +16,7 @@ random.o \ rational.o \ rc4.o \ + sha1.o \ string.o \ tree.o \ @@ -34,6 +35,7 @@ mem.h \ random.h \ rational.h \ + sha1.h NAME=avutil LIBVERSION=$(LAVUVERSION) diff -r bc871e7ac0dc -r aedb9d18c7cf avutil.h --- a/avutil.h Sat Nov 24 10:08:02 2007 +0000 +++ b/avutil.h Wed Dec 12 20:58:41 2007 +0000 @@ -30,8 +30,8 @@ #define AV_STRINGIFY(s) AV_TOSTRING(s) #define AV_TOSTRING(s) #s -#define LIBAVUTIL_VERSION_INT ((49<<16)+(5<<8)+0) -#define LIBAVUTIL_VERSION 49.5.0 +#define LIBAVUTIL_VERSION_INT ((49<<16)+(6<<8)+0) +#define LIBAVUTIL_VERSION 49.6.0 #define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION) diff -r bc871e7ac0dc -r aedb9d18c7cf sha1.c --- a/sha1.c Sat Nov 24 10:08:02 2007 +0000 +++ b/sha1.c Wed Dec 12 20:58:41 2007 +0000 @@ -29,6 +29,8 @@ uint32_t state[5]; } AVSHA1; +const int av_sha1_size = sizeof(AVSHA1); + #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) /* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */