Commit 5f29eaaf authored by fbarchard@google.com's avatar fbarchard@google.com

Fix for off by one in scale - only source should be src - 0x10001 because dest…

Fix for off by one in scale - only source should be src - 0x10001 because dest will hit exact pixel.
BUG=292
TESTED=valgrind

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

git-svn-id: http://libyuv.googlecode.com/svn/trunk@902 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent aae7deb5
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 898
Version: 902
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 898
#define LIBYUV_VERSION 902
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -581,7 +581,7 @@ FilterMode ScaleFilterReduce(int src_width, int src_height,
#define CENTERSTART(dx, s) (dx < 0) ? -((-dx >> 1) + s) : ((dx >> 1) + s)
#define FIXEDDIV1(src, dst) FixedDiv((src << 16) - 0x00010001, \
(dst << 16) - 0x00010001);
(dst << 16) - 0x00010000);
// Compute slope values for stepping.
void ScaleSlope(int src_width, int src_height,
......
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