ref: fcb890d751f34720d3df15fe897e7d5c3d14ba71
parent: ccb6bdca75396f79b1a50d1efa8f1e0d8aab2221
parent: 1bf1428654d29e4debe269b424ea3d8d486c45df
author: Jingning Han <[email protected]>
date: Wed Aug 21 18:07:00 EDT 2013
Merge "Enable zero coeff check in sub8x8 UV rd loop"
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3599,7 +3599,9 @@
}
compmode_cost = vp9_cost_bit(comp_mode_p, is_comp_pred);
- tmp_best_rdu = best_rd - RDCOST(x->rdmult, x->rddiv, rate2, distortion2);
+ tmp_best_rdu = best_rd -
+ MIN(RDCOST(x->rdmult, x->rddiv, rate2, distortion2),
+ RDCOST(x->rdmult, x->rddiv, 0, total_sse));
if (tmp_best_rdu > 0) {
// If even the 'Y' rd value of split is higher than best so far