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
This commit is contained in:
parent
cd228fcdb8
commit
4db022c368
@ -2366,7 +2366,7 @@ static int64_t handle_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
|
||||
}
|
||||
|
||||
if (cm->interp_filter == SWITCHABLE)
|
||||
*rate2 += vp9_get_switchable_rate(cpi);
|
||||
*rate2 += rs;
|
||||
|
||||
if (!is_comp_pred) {
|
||||
if (cpi->allow_encode_breakout)
|
||||
|
Loading…
x
Reference in New Issue
Block a user