Commit 90edf660 authored by Jingning Han's avatar Jingning Han

Prevent obmc access 2x2 level prediction block

When the above and left neighbor blocks are coded in the sub8x8
block size, use 4x4 level prediction block to produce the reference
for obmc.

Change-Id: Ic19f6e3b3880cebd153078823a3b77b04e28053b
parent 362d0c7b
......@@ -937,7 +937,11 @@ void build_inter_predictors(const AV1_COMMON *cm, MACROBLOCKD *xd, int plane,
const int row_start = (block_size_high[bsize] == 4) ? -1 : 0;
const int col_start = (block_size_wide[bsize] == 4) ? -1 : 0;
#if CONFIG_MOTION_VAR
if (!build_for_obmc && sub8x8_inter) {
#else
if (sub8x8_inter) {
#endif // CONFIG_MOTION_VAR
for (int row = row_start; row <= 0 && sub8x8_inter; ++row)
for (int col = col_start; col <= 0; ++col)
if (!is_inter_block(&xd->mi[row * xd->mi_stride + col]->mbmi))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment