Commit 53e9d010 authored by Michael Niedermayer's avatar Michael Niedermayer

Fix generated md5, it was wrong for some input lengths.

Fix issue634.

Originally committed as revision 15335 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 631e8afb
......@@ -144,7 +144,7 @@ void av_md5_final(AVMD5 *ctx, uint8_t *dst){
uint64_t finalcount= le2me_64(ctx->len<<3);
av_md5_update(ctx, "\200", 1);
while((ctx->len & 63)<56)
while((ctx->len & 63)!=56)
av_md5_update(ctx, "", 1);
av_md5_update(ctx, (uint8_t*)&finalcount, 8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment