Index: source/libvpx/vp9/encoder/vp9_vaq.c |
=================================================================== |
--- source/libvpx/vp9/encoder/vp9_vaq.c (revision 240950) |
+++ source/libvpx/vp9/encoder/vp9_vaq.c (working copy) |
@@ -118,8 +118,8 @@ |
((-xd->mb_to_bottom_edge) >> 3) : 0; |
if (right_overflow || bottom_overflow) { |
- int bw = (1 << (mi_width_log2(bs) + 3)) - right_overflow; |
- int bh = (1 << (mi_height_log2(bs) + 3)) - bottom_overflow; |
+ const int bw = 8 * num_8x8_blocks_wide_lookup[bs] - right_overflow; |
+ const int bh = 8 * num_8x8_blocks_high_lookup[bs] - bottom_overflow; |
int avg; |
variance(x->plane[0].src.buf, x->plane[0].src.stride, |
vp9_64_zeros, 0, bw, bh, &sse, &avg); |