Commit 47c4989b authored by fbarchard@google.com's avatar fbarchard@google.com

MemRandomize fix for short result

BUG=none
TEST=none
R=dingkai@google.com

Review URL: https://webrtc-codereview.appspot.com/1668005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@725 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent e4d77322
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 724
Version: 725
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 723
#define LIBYUV_VERSION 725
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -63,9 +63,9 @@ static inline double get_time() {
static inline void MemRandomize(uint8* dst, int len) {
int i;
for (i = 0; i < len - 3; i += 4) {
*reinterpret_cast<uint32*>(dst) = random();
dst += 4;
for (i = 0; i < len - 1; i += 2) {
*reinterpret_cast<uint16*>(dst) = random();
dst += 2;
}
for (; i < len; ++i) {
*dst++ = random();
......
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