shithub: libvpx

Download patch

ref: b573fef76d2a00ed54c6e94e529f9b4eaaf64ac3
parent: 42eb97eb91063b9f83241f68fe006441f99d4911
author: Yaowu Xu <yaowu@google.com>
date: Thu Mar 5 03:20:35 EST 2015

Use correct bsize for uv

Change-Id: I9c897d32af6c3a956bb6f424a74c12737727038a

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -743,7 +743,11 @@
     for (i = 1; i <= 2; ++i) {
       struct macroblock_plane  *p = &x->plane[i];
       struct macroblockd_plane *pd = &xd->plane[i];
+#if GLOBAL_MOTION
+      const BLOCK_SIZE bs = get_plane_block_size(bsize, pd);
+#else
       const BLOCK_SIZE bs = get_plane_block_size(BLOCK_64X64, pd);
+#endif
       uv_sad = cpi->fn_ptr[bs].sdf(p->src.buf, p->src.stride,
                                    pd->dst.buf, pd->dst.stride);