diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-15 22:10:28 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-15 22:10:28 +0000 |
commit | 53e9d0105f67ad24a7a519d0260d3f2f8f4f86de (patch) | |
tree | fae9a36eeb2f75738159e66d395e0cf5dbb94710 | |
parent | 631e8afb8c59a0759e57ade1c8a910bb46e0fd6d (diff) | |
download | ffmpeg-53e9d0105f67ad24a7a519d0260d3f2f8f4f86de.tar.gz |
Fix generated md5, it was wrong for some input lengths.
Fix issue634.
Originally committed as revision 15335 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/md5.c b/libavutil/md5.c index ee39de1318..d7c4f300c3 100644 --- a/libavutil/md5.c +++ b/libavutil/md5.c @@ -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); |