Commit d27598e4 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Janne Grunau

Clip unscaled output pixels in put_8tap_scaled_c()

parent 14388c3c
......@@ -181,7 +181,7 @@ put_8tap_scaled_c(pixel *dst, const ptrdiff_t dst_stride,
for (x = 0; x < w; x++)
dst[x] = fv ? FILTER_8TAP_CLIP(mid_ptr, x, fv, 128, 10) :
(mid_ptr[x] + 8) >> 4;
iclip_pixel((mid_ptr[x] + 8) >> 4);
my += dy;
mid_ptr += (my >> 10) * 128;
......
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