Commit 695f42fd authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent 08873153
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; \
} \
\
......
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