ref: 4a6c99e5fd99791ef18152f89099092b088822a9
parent: 00f1cf40ed90acd7e5a94ea7fc9c7b5e6fbc01a0
parent: 94ecfa323f8fc5af68244a15058374a887758d5a
author: Jingning Han <[email protected]>
date: Fri Oct 17 07:15:03 EDT 2014
Merge "Reset rate cost value in rd mode search"
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3394,6 +3394,7 @@
}
if (best_mode_index < 0 || best_rd >= best_rd_so_far) {
+ rd_cost->rate = INT_MAX;
rd_cost->rdcost = INT64_MAX;
return;
}
@@ -3564,6 +3565,7 @@
rd_cost->rdcost = this_rd;
if (this_rd >= best_rd_so_far) {
+ rd_cost->rate = INT_MAX;
rd_cost->rdcost = INT64_MAX;
return;
}
@@ -4115,6 +4117,7 @@
}
if (best_rd >= best_rd_so_far) {
+ rd_cost->rate = INT_MAX;
rd_cost->rdcost = INT64_MAX;
return;
}