diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2007-12-12 20:58:41 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2007-12-12 20:58:41 +0000 |
commit | 537c8e7a480282e9dd260a9922c6e9425575636a (patch) | |
tree | 718b488be4994b36cfa28d8887e4bb3e4772510b /libavutil | |
parent | 84be6e723930e540ee105949af1a7a498164560c (diff) | |
download | ffmpeg-537c8e7a480282e9dd260a9922c6e9425575636a.tar.gz |
Provide sha1 to outside applications
Patch from Diego Pettenò flameeyesATgmailDOTcom
Originally committed as revision 11207 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/Makefile | 2 | ||||
-rw-r--r-- | libavutil/avutil.h | 4 | ||||
-rw-r--r-- | libavutil/sha1.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/libavutil/Makefile b/libavutil/Makefile index a456b96028..d89b399fdb 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -16,6 +16,7 @@ OBJS = adler32.o \ random.o \ rational.o \ rc4.o \ + sha1.o \ string.o \ tree.o \ @@ -34,6 +35,7 @@ HEADERS = adler32.h \ mem.h \ random.h \ rational.h \ + sha1.h NAME=avutil LIBVERSION=$(LAVUVERSION) diff --git a/libavutil/avutil.h b/libavutil/avutil.h index 764ae846d7..a42ceacf99 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -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 --git a/libavutil/sha1.c b/libavutil/sha1.c index 13b4acf18a..21edb97b15 100644 --- a/libavutil/sha1.c +++ b/libavutil/sha1.c @@ -29,6 +29,8 @@ typedef struct AVSHA1 { 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 */ |