Mercurial > libavutil.hg
changeset 406:aedb9d18c7cf libavutil
Provide sha1 to outside applications
Patch from Diego Petten flameeyesATgmailDOTcom
author | lu_zero |
---|---|
date | Wed, 12 Dec 2007 20:58:41 +0000 |
parents | bc871e7ac0dc |
children | 7390e0fc2fd3 |
files | Makefile avutil.h sha1.c |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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)
--- 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 */