mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-16 23:29:52 +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
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 724
|
Version: 725
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 723
|
#define LIBYUV_VERSION 725
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -63,9 +63,9 @@ static inline double get_time() {
|
|||||||
|
|
||||||
static inline void MemRandomize(uint8* dst, int len) {
|
static inline void MemRandomize(uint8* dst, int len) {
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < len - 3; i += 4) {
|
for (i = 0; i < len - 1; i += 2) {
|
||||||
*reinterpret_cast<uint32*>(dst) = random();
|
*reinterpret_cast<uint16*>(dst) = random();
|
||||||
dst += 4;
|
dst += 2;
|
||||||
}
|
}
|
||||||
for (; i < len; ++i) {
|
for (; i < len; ++i) {
|
||||||
*dst++ = random();
|
*dst++ = random();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user