]> granicus.if.org Git - libvpx/commitdiff
Fix highbd inter prediction filter sse4 overwriting issue
authorJingning Han <jingning@google.com>
Wed, 13 Jul 2016 19:46:59 +0000 (12:46 -0700)
committerJingning Han <jingning@google.com>
Wed, 13 Jul 2016 19:51:02 +0000 (12:51 -0700)
Properly handle the case where the height is an integer multiple
of 4.

Change-Id: I11ac188c13f78db20902e2e333c60ce76ce837c5

vp10/common/x86/vp10_highbd_convolve_sse4.c

index e82817846b025dc28fbf6fc998e93b580e4a846c..e8e4f77bb891046a4b2899736a2aa2c1fc1fb394 100644 (file)
@@ -276,6 +276,9 @@ void vp10_highbd_convolve_horiz_sse4_1(const uint16_t *src, int src_stride,
     blkHeight--;
   }
 
+  if (blkResidu == 0)
+    return;
+
   for (col = 0; col < w; col += 4) {
     for (i = 0; i < 4; ++i) {
       highbd_filter_horiz(srcPtr, src_stride, verf, tapsNum, temp + (i * 4));