shithub: libvpx

Download patch

ref: fffa2a61d72883019c7c09466db7e947cb7de34d
parent: c2b43164bd9a0ba707d639ff786ba975235f791e
author: James Berry <jamesberry@google.com>
date: Wed Feb 9 11:55:39 EST 2011

fixed stride in vp8_temporal_filter_predictors_mb_c

stride would not be calculated correctly for material
with odd sized frame widths.

Change-Id: I1710f6aef9ebb93d36249c9239c68c5baa9791f8

--- a/vp8/encoder/temporal_filter.c
+++ b/vp8/encoder/temporal_filter.c
@@ -70,7 +70,7 @@
     // U & V
     mv_row >>= 1;
     mv_col >>= 1;
-    stride >>= 1;
+    stride = (stride + 1) >> 1;
     offset = (mv_row >> 3) * stride + (mv_col >> 3);
     uptr = u_mb_ptr + offset;
     vptr = v_mb_ptr + offset;
--