ref: d27598e418b0b9916c35b3e5187a5f98c00fe701
parent: 14388c3c6b53a5c2fea329e36693fd092042d392
author: Ronald S. Bultje <[email protected]>
date: Thu Nov 15 10:24:56 EST 2018
Clip unscaled output pixels in put_8tap_scaled_c()
--- a/src/mc_tmpl.c
+++ b/src/mc_tmpl.c
@@ -181,7 +181,7 @@
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;