summaryrefslogtreecommitdiff
path: root/libavutil/md5.c
diff options
context:
space:
mode:
authorIvo van Poorten <ivop@euronet.nl>2006-07-02 19:00:15 +0000
committerIvo van Poorten <ivop@euronet.nl>2006-07-02 19:00:15 +0000
commitf28660eb3f3faa14672c7e89c2bf861ece581965 (patch)
treeb49059c97c745b62e0f1f93ff9fd39021bfb798b /libavutil/md5.c
parent5c6a5d584eeb2bdca148b3fe256f9cd171f93238 (diff)
cast pointers to make compiler happy
remove test define Originally committed as revision 5582 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/md5.c')
-rw-r--r--libavutil/md5.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavutil/md5.c b/libavutil/md5.c
index 4a07295454..2b5708100b 100644
--- a/libavutil/md5.c
+++ b/libavutil/md5.c
@@ -116,7 +116,7 @@ void av_md5_update(AVMD5 *ctx, const uint8_t *src, const int len){
for( i = 0; i < len; i++ ){
ctx->block[ ctx->b_used++ ] = src[i];
if( 64 == ctx->b_used ){
- body(ctx->ABCD, ctx->block);
+ body(ctx->ABCD, (const uint32_t*) ctx->block);
ctx->b_used = 0;
}
}
@@ -130,16 +130,15 @@ void av_md5_final(AVMD5 *ctx, uint8_t *dst){
memset(&ctx->block[ctx->b_used], 0, 64 - ctx->b_used);
if( 56 < ctx->b_used ){
- body( ctx->ABCD, ctx->block );
+ body( ctx->ABCD, (const uint32_t*) ctx->block );
memset(ctx->block, 0, 64);
}
for(i=0; i<8; i++)
ctx->block[56+i] = (ctx->len << 3) >> (i<<3);
- body(ctx->ABCD, ctx->block);
+ body(ctx->ABCD, (const uint32_t*) ctx->block);
-#define le2me_32(a) a
for(i=0; i<4; i++)
((uint32_t*)dst)[i]= le2me_32(ctx->ABCD[3-i]);
}