ref: 2eab4372fc3f80c0c9909a9a35e7e1f1336d6922
parent: b6a3062d8181c48b8056458f12950bb6fd08628f
author: John Koleszar <jkoleszar@google.com>
date: Thu Feb 28 08:45:47 EST 2013
Fix use of uninitialized memory in CONFIG_ABOVESPREFMV The ABOVESPREFMV experiment uses four pixels to the left of the current block, which don't exist for the left-most column. Change-Id: I4cf0b42ae8f54c0b3e7b1ed8755704b74fafc39c
--- a/vp9/common/vp9_findnearmv.c
+++ b/vp9/common/vp9_findnearmv.c
@@ -190,7 +190,11 @@
col_offset = this_mv.as_mv.col >> 3;
offset = ref_y_stride * row_offset + col_offset;
score = 0;
+#if !CONFIG_ABOVESPREFMV
if (xd->up_available) {
+#else
+ if (xd->up_available && xd->left_available) {
+#endif
vp9_sub_pixel_variance16x2(above_ref + offset, ref_y_stride,
SP(this_mv.as_mv.col),
SP(this_mv.as_mv.row),
--
⑨