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
This commit is contained in:
Yaowu Xu 2017-02-27 16:33:14 -08:00
Родитель cdf8a14e85
Коммит 1e2aae1ae7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);