diff md5.c @ 571:1d948bd9850c libavutil

Fix generated md5, it was wrong for some input lengths. Fix issue634.
author michael
date Mon, 15 Sep 2008 22:10:28 +0000
parents 63e1f9c749dd
children 49da89abe282
line wrap: on
line diff
--- a/md5.c	Sun Sep 14 22:17:40 2008 +0000
+++ b/md5.c	Mon Sep 15 22:10:28 2008 +0000
@@ -144,7 +144,7 @@
     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);