summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 23:38:10 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 23:38:10 +0100
commit7c2022e2f62eb21024f57f274c566ec1f4b899f3 (patch)
tree96c38465cef0583bb1729be6ea780ff06226a263
parent93f7a91a954e813391a499d0b006d71c0d854a4d (diff)
downloadxine-lib-7c2022e2f62eb21024f57f274c566ec1f4b899f3.tar.gz
xine-lib-7c2022e2f62eb21024f57f274c566ec1f4b899f3.tar.bz2
Add patch so that sha1 support is built into libavutil.
Patch for upstream FFmpeg will follow.
-rw-r--r--contrib/ffmpeg/libavutil/Makefile3
-rw-r--r--contrib/ffmpeg/libavutil/sha1.c2
2 files changed, 4 insertions, 1 deletions
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 */