From edbbce8e61bcaa06d7510f2c98fd3fef47c7a74a Mon Sep 17 00:00:00 2001
From: Jingning Han <jingning@google.com>
Date: Wed, 13 Jul 2016 12:46:59 -0700
Subject: [PATCH] Fix highbd inter prediction filter sse4 overwriting issue

Properly handle the case where the height is an integer multiple
of 4.

Change-Id: I11ac188c13f78db20902e2e333c60ce76ce837c5
---
 vp10/common/x86/vp10_highbd_convolve_sse4.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vp10/common/x86/vp10_highbd_convolve_sse4.c b/vp10/common/x86/vp10_highbd_convolve_sse4.c
index e82817846b..e8e4f77bb8 100644
--- a/vp10/common/x86/vp10_highbd_convolve_sse4.c
+++ b/vp10/common/x86/vp10_highbd_convolve_sse4.c
@@ -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));
-- 
GitLab