changeset 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 152ab60d2d53
children 5877edf05eb7
files md5.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);