mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-01-01 03:12:16 +08:00
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
This commit is contained in:
parent
e4d77322ab
commit
47c4989b79
@ -1,6 +1,6 @@
|
||||
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user