summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorJames Berry <jamesberry@google.com>2011-02-09 16:55:39 -0500
committerJames Berry <jamesberry@google.com>2011-02-09 16:55:39 -0500
commitfffa2a61d72883019c7c09466db7e947cb7de34d (patch)
tree80aa947f83e30231e57f759b7ecaf51b9efb2737 /vp8
parentc2b43164bd9a0ba707d639ff786ba975235f791e (diff)
downloadlibvpx-fffa2a61d72883019c7c09466db7e947cb7de34d.tar
libvpx-fffa2a61d72883019c7c09466db7e947cb7de34d.tar.gz
libvpx-fffa2a61d72883019c7c09466db7e947cb7de34d.tar.bz2
libvpx-fffa2a61d72883019c7c09466db7e947cb7de34d.zip
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
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/temporal_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/temporal_filter.c b/vp8/encoder/temporal_filter.c
index f28daaff9..3c6d1a4d9 100644
--- a/vp8/encoder/temporal_filter.c
+++ b/vp8/encoder/temporal_filter.c
@@ -70,7 +70,7 @@ static void vp8_temporal_filter_predictors_mb_c
// 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;