shithub: dav1d

Download patch

ref: e55107960922779d14452db670eb5c6918f1b03f
parent: 4149c72b5fd580858f5629d304688e36b27b4b33
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Thu Nov 15 07:47:09 EST 2018

Don't clip in prep_8tap_scaled_c

--- a/src/mc_tmpl.c
+++ b/src/mc_tmpl.c
@@ -273,7 +273,7 @@
         GET_V_FILTER(my >> 6);
 
         for (x = 0; x < w; x++)
-            tmp[x] = fv ? FILTER_8TAP_CLIP(mid_ptr, x, fv, 128, 6) : mid_ptr[x];
+            tmp[x] = fv ? FILTER_8TAP_RND(mid_ptr, x, fv, 128, 6) : mid_ptr[x];
 
         my += dy;
         mid_ptr += (my >> 10) * 128;