Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: patched-ffmpeg-mt/libavutil/sha.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: patched-ffmpeg-mt/libavutil/sha.c
===================================================================
--- patched-ffmpeg-mt/libavutil/sha.c (revision 41250)
+++ patched-ffmpeg-mt/libavutil/sha.c (working copy)
@@ -25,6 +25,8 @@
#include "avutil.h"
#include "bswap.h"
#include "sha.h"
+#include "sha1.h"
+#include "intreadwrite.h"
/** hash context */
typedef struct AVSHA {
@@ -319,7 +321,7 @@
av_sha_update(ctx, "", 1);
av_sha_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
for (i = 0; i < ctx->digest_len; i++)
- ((uint32_t*)digest)[i] = be2me_32(ctx->state[i]);
+ AV_WB32(digest + i*4, ctx->state[i]);
}
#if LIBAVUTIL_VERSION_MAJOR < 51

Powered by Google App Engine
This is Rietveld 408576698