shithub: libvpx

Download patch

ref: 17c221687fa49de8883c6f5f1b9886c9f8643735
parent: 078f5bf43948628c34dde64aa44edfb4cf9bf1ba
parent: 2eab4372fc3f80c0c9909a9a35e7e1f1336d6922
author: John Koleszar <jkoleszar@google.com>
date: Thu Feb 28 10:18:50 EST 2013

Merge "Fix use of uninitialized memory in CONFIG_ABOVESPREFMV" into experimental

--- 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),
--