]> granicus.if.org Git - libvpx/commitdiff
Use correct bsize for uv
authorYaowu Xu <yaowu@google.com>
Thu, 5 Mar 2015 16:20:35 +0000 (08:20 -0800)
committerYaowu Xu <yaowu@google.com>
Thu, 5 Mar 2015 16:20:35 +0000 (08:20 -0800)
Change-Id: I9c897d32af6c3a956bb6f424a74c12737727038a

vp9/encoder/vp9_encodeframe.c

index 3125a0eb79fb749b3596a3ea950e1d82352f1542..2f04454ef26513d0edb274d7837e68de85aaf375 100644 (file)
@@ -743,7 +743,11 @@ static void choose_partitioning(VP9_COMP *cpi,
     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);