[FFmpeg-cvslog] r11207 - in trunk/libavutil: Makefile avutil.h sha1.c
lu_zero
subversion
Wed Dec 12 21:58:42 CET 2007
Author: lu_zero
Date: Wed Dec 12 21:58:41 2007
New Revision: 11207
Log:
Provide sha1 to outside applications
Patch from Diego Petten? flameeyesATgmailDOTcom
Modified:
trunk/libavutil/Makefile
trunk/libavutil/avutil.h
trunk/libavutil/sha1.c
Modified: trunk/libavutil/Makefile
==============================================================================
--- trunk/libavutil/Makefile (original)
+++ trunk/libavutil/Makefile Wed Dec 12 21:58:41 2007
@@ -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)
Modified: trunk/libavutil/avutil.h
==============================================================================
--- trunk/libavutil/avutil.h (original)
+++ trunk/libavutil/avutil.h Wed Dec 12 21:58:41 2007
@@ -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)
Modified: trunk/libavutil/sha1.c
==============================================================================
--- trunk/libavutil/sha1.c (original)
+++ trunk/libavutil/sha1.c Wed Dec 12 21:58:41 2007
@@ -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 */
More information about the ffmpeg-cvslog
mailing list