Commit 1e2aae1a authored by Yaowu Xu's avatar Yaowu Xu

Use correct segment

Segmment based lossless flag is used in select transform size, this
commit fixes a bug where wrong segment_id is used in such selection.

BUG=aomedia:350

Change-Id: Ibc981c779739849bac00447155180abbd319eb28
parent cdf8a14e
......@@ -2232,7 +2232,7 @@ static void super_block_yrd(const AV1_COMP *const cpi, MACROBLOCK *x,
assert(bs == xd->mi[0]->mbmi.sb_type);
if (xd->lossless[0]) {
if (xd->lossless[xd->mi[0]->mbmi.segment_id]) {
choose_smallest_tx_size(cpi, x, rd_stats, ref_best_rd, bs);
} else if (cpi->sf.tx_size_search_method == USE_LARGESTALL) {
choose_largest_tx_size(cpi, x, rd_stats, ref_best_rd, bs);
......
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