Commit 47c7fd98 authored by Jingning Han's avatar Jingning Han

Fix a switch condition in select_tx_block

Change-Id: I3d90a0286c5ef559b91ad298db97e8990becf85f
parent b86b76bb
......@@ -1784,8 +1784,8 @@ static void select_tx_block(const VP10_COMP *cpi, MACROBLOCK *x,
tx_block_rd_b(cpi, x, tx_size, blk_row, blk_col, plane, block,
plane_bsize, coeff_ctx, rate, dist, bsse, skip);
if (RDCOST(x->rdmult, x->rddiv, *rate, *dist) >=
RDCOST(x->rdmult, x->rddiv, zero_blk_rate, *bsse) && (*skip == 0) &&
if ((RDCOST(x->rdmult, x->rddiv, *rate, *dist) >=
RDCOST(x->rdmult, x->rddiv, zero_blk_rate, *bsse) || *skip == 1) &&
!xd->lossless[mbmi->segment_id]) {
*rate = zero_blk_rate;
*dist = *bsse;
......
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