mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
fix for odd width but even height in TestI420
BUG=400 TESTED=libyuv unittests pass locally with width of 11 R=harryjin@google.com Review URL: https://webrtc-codereview.appspot.com/41859004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1271 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
0887315390
commit
695f42fdb8
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 1270
|
||||
Version: 1271
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 1270
|
||||
#define LIBYUV_VERSION 1271
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||
|
||||
@ -74,6 +74,12 @@ TEST_F(libyuvTest, TESTNAME) { \
|
||||
p[HN + 1] = r; \
|
||||
p += 2; \
|
||||
} \
|
||||
if (benchmark_width_ & 1) { \
|
||||
uint8 r = static_cast<uint8>(random()); \
|
||||
p[0] = r; \
|
||||
p[HN] = r; \
|
||||
p += 1; \
|
||||
} \
|
||||
p += HN; \
|
||||
} \
|
||||
\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user