Fix typo that creeped in.

Change-Id: I600725721d9df80d6deddc65e00663649a47c941
This commit is contained in:
Vincent Rabaud 2017-05-23 17:10:34 +02:00
parent 39e19f927c
commit 7caef29b86

View File

@ -180,8 +180,7 @@ static uint8_t NearLosslessComponent(uint8_t value, uint8_t predict,
// max_quantization which is a power of 2, smaller than max_diff). Take care if
// value and predict have undergone subtract green, which means that red and
// blue are represented as offsets from green.
#define NEAR_LOSSLESS_DIFF(a, b) \
(uint8_t)((((int)((a) >> 16) - (int)(b))) & 0xff)
#define NEAR_LOSSLESS_DIFF(a, b) (uint8_t)((((int)(a) - (int)(b))) & 0xff)
static uint32_t NearLossless(uint32_t value, uint32_t predict,
int max_quantization, int max_diff,
int used_subtract_green) {