diff --git a/README.chromium b/README.chromium index dddf0ae85..db900167e 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 588 +Version: 589 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 9907e217e..ba05e2442 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 588 +#define LIBYUV_VERSION 589 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/row_common.cc b/source/row_common.cc index ee5c4b9e7..557d0ffaf 100644 --- a/source/row_common.cc +++ b/source/row_common.cc @@ -1569,21 +1569,19 @@ void ARGBUnattenuateRow_C(const uint8* src_argb, uint8* dst_argb, int width) { uint32 g = src_argb[1]; uint32 r = src_argb[2]; const uint32 a = src_argb[3]; - if (a) { - const uint32 ia = fixed_invtbl8[a] & 0xffff; // 8.16 fixed point - b = (b * ia) >> 8; - g = (g * ia) >> 8; - r = (r * ia) >> 8; - // Clamping should not be necessary but is free in assembly. - if (b > 255) { - b = 255; - } - if (g > 255) { - g = 255; - } - if (r > 255) { - r = 255; - } + const uint32 ia = fixed_invtbl8[a] & 0xffff; // 8.16 fixed point + b = (b * ia) >> 8; + g = (g * ia) >> 8; + r = (r * ia) >> 8; + // Clamping should not be necessary but is free in assembly. + if (b > 255) { + b = 255; + } + if (g > 255) { + g = 255; + } + if (r > 255) { + r = 255; } dst_argb[0] = b; dst_argb[1] = g;