Commit f2b4f205 authored by Ola Hugosson's avatar Ola Hugosson

[NORMATIVE] Fix condition for MFMV search window

The condition checking if a projection ends up within the 192x64 window is off by one.

BUG=aomedia:1643

Change-Id: I6af41c13a17411739c3a2154bce135970a052c4d
parent 8a1f7ade
......@@ -1080,9 +1080,9 @@ static int get_block_position(AV1_COMMON *cm, int *mi_r, int *mi_c, int blk_row,
col >= (cm->mi_cols >> 1))
return 0;
if (row <= base_blk_row - (MAX_OFFSET_HEIGHT >> 3) ||
if (row < base_blk_row - (MAX_OFFSET_HEIGHT >> 3) ||
row >= base_blk_row + 8 + (MAX_OFFSET_HEIGHT >> 3) ||
col <= base_blk_col - (MAX_OFFSET_WIDTH >> 3) ||
col < base_blk_col - (MAX_OFFSET_WIDTH >> 3) ||
col >= base_blk_col + 8 + (MAX_OFFSET_WIDTH >> 3))
return 0;
......
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