Commit ef2dde5b authored by Jingning Han's avatar Jingning Han
Browse files

Fix unstable encoder behavior when row_tile is turned on

This commit fixes the use of uninitialized value in obmc motion
search, which causes unstable encoder behavior when row_tile is
not zero.

Change-Id: Ib6aa46ebedad90376ae2ac2edcae9e17f9234b6d
parent f115cc60
......@@ -501,7 +501,7 @@ static INLINE void set_mi_row_col(MACROBLOCKD *xd, const TileInfo *const tile,
xd->mb_to_right_edge = ((mi_cols - bw - mi_col) * MI_SIZE) * 8;
// Are edges available for intra prediction?
xd->up_available = (mi_row != 0);
xd->up_available = (mi_row > tile->mi_row_start);
xd->left_available = (mi_col > tile->mi_col_start);
if (xd->up_available) {
xd->above_mi = xd->mi[-xd->mi_stride];
Supports Markdown
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