Commit 4db022c3 authored by Jingning Han's avatar Jingning Han Committed by Gerrit Code Review

Re-use switchable rate value in handle_inter_mode

The value of switchable rate has been stored in a local variable.
This change skips the second call to vp9_get_switchable_rate() by
reusing the local variable.

Change-Id: Ib7d3fef7621cc4bde94c6d6e6b3a71f1fd4559f2
parent cd228fcd
...@@ -2366,7 +2366,7 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, ...@@ -2366,7 +2366,7 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
} }
if (cm->interp_filter == SWITCHABLE) if (cm->interp_filter == SWITCHABLE)
*rate2 += vp9_get_switchable_rate(cpi); *rate2 += rs;
if (!is_comp_pred) { if (!is_comp_pred) {
if (cpi->allow_encode_breakout) if (cpi->allow_encode_breakout)
......
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