Regression fix for alpha unfiltering:

For vertical filter, correctly initialize 'preds' when not starting at
row 0.

Change-Id: I69697d73dde8a2f701f376ff3986d09fa6f7fee3
This commit is contained in:
Urvang Joshi 2013-06-16 02:00:44 -07:00
parent a368db81c6
commit c8f9c84d5e

View File

@ -112,6 +112,9 @@ static WEBP_INLINE void DoVerticalFilter(const uint8_t* in,
row = 1;
in += stride;
out += stride;
} else {
// We are starting from in-between. Make sure 'preds' points to prev row.
preds -= stride;
}
// Filter line-by-line.