Commit 87c4d190 authored by kostya's avatar kostya

Simplify expression as suggested by Måns Rullgård

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21756 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ee119bc7
...@@ -320,7 +320,7 @@ void av_sha_final(AVSHA* ctx, uint8_t *digest) ...@@ -320,7 +320,7 @@ void av_sha_final(AVSHA* ctx, uint8_t *digest)
av_sha_update(ctx, "", 1); av_sha_update(ctx, "", 1);
av_sha_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */ av_sha_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
for (i = 0; i < ctx->digest_len; i++) for (i = 0; i < ctx->digest_len; i++)
AV_WN32(digest + i*4, be2me_32(ctx->state[i])); AV_WB32(digest + i*4, ctx->state[i]);
} }
#if LIBAVUTIL_VERSION_MAJOR < 51 #if LIBAVUTIL_VERSION_MAJOR < 51
......
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