From 7c2022e2f62eb21024f57f274c566ec1f4b899f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 11 Dec 2007 23:38:10 +0100 Subject: Add patch so that sha1 support is built into libavutil. Patch for upstream FFmpeg will follow. --- contrib/ffmpeg/libavutil/Makefile | 3 ++- contrib/ffmpeg/libavutil/sha1.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/ffmpeg/libavutil/Makefile b/contrib/ffmpeg/libavutil/Makefile index a760401ab..4afcd3b99 100644 --- a/contrib/ffmpeg/libavutil/Makefile +++ b/contrib/ffmpeg/libavutil/Makefile @@ -15,10 +15,11 @@ OBJS= mathematics.o \ random.o \ aes.o \ base64.o \ + sha1.o \ HEADERS = avutil.h common.h mathematics.h integer.h rational.h \ intfloat_readwrite.h md5.h adler32.h log.h fifo.h lzo.h \ - random.h mem.h base64.h + random.h mem.h base64.h sha1.h NAME=avutil LIBVERSION=$(LAVUVERSION) diff --git a/contrib/ffmpeg/libavutil/sha1.c b/contrib/ffmpeg/libavutil/sha1.c index 6c10791f4..7f4fdb767 100644 --- a/contrib/ffmpeg/libavutil/sha1.c +++ b/contrib/ffmpeg/libavutil/sha1.c @@ -11,6 +11,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 */ -- cgit v1.2.3