Commit 13025199 authored by David Barker's avatar David Barker Committed by Debargha Mukherjee

dependent-horztilegroups: Fix decoder crash

The tg_horz_boundary flag should always be 0 for the topmost
tile row, even when dependent-horztilegroups is enabled.
Otherwise, we end up trying to fetch data off the top of the
frame, which results in segfaults.

BUG=aomedia:1252

Change-Id: I7caaa2b38a21c05ffb13b6c72f41f8f6e1982b69
parent 33ba1fe5
......@@ -25,7 +25,7 @@ void av1_tile_set_tg_boundary(TileInfo *tile, const AV1_COMMON *const cm,
#if !CONFIG_MAX_TILE
(void)row;
#endif
tile->tg_horz_boundary = 0;
tile->tg_horz_boundary = (row == 0);
#else
const int tg_start_row = cm->tile_group_start_row[row][col];
const int tg_start_col = cm->tile_group_start_col[row][col];
......
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