]> granicus.if.org Git - libvpx/commitdiff
Fix tsan failure in webrtc test.
authorJerome Jiang <jianj@google.com>
Fri, 10 May 2019 04:04:11 +0000 (21:04 -0700)
committerJerome Jiang <jianj@google.com>
Fri, 10 May 2019 04:04:11 +0000 (21:04 -0700)
plane block size is used when computing model rd for uv.
However, it iterates thru sub-blocks based on tx size on uv planes
and plane block size could be bigger than that, which leads to reading
beyond tile boundary when the block is on it.

BUG=b/131414589

Change-Id: I362091484b1325b89d2175039323b235a06ebffc

vp9/encoder/vp9_pickmode.c

index a431e4ca6865635f655bfd3b36955a221c5c194e..b9073b358c6628ac242a40be3b302522a1c740c7 100644 (file)
@@ -1029,7 +1029,7 @@ static void estimate_block_intra(int plane, int block, int row, int col,
   } else {
     unsigned int var = 0;
     unsigned int sse = 0;
-    model_rd_for_sb_uv(cpi, plane_bsize, x, xd, &this_rdc, &var, &sse, plane,
+    model_rd_for_sb_uv(cpi, bsize_tx, x, xd, &this_rdc, &var, &sse, plane,
                        plane);
   }