ref: 9d377ff930d42ee080333ade5c983c0edff5b1e0
parent: 1ef50d643b6533c08560c9616f0b822ff062071f
author: angiebird <angiebird@google.com>
date: Mon Oct 14 07:54:53 EDT 2019
Localize last_loop_decay_rate Change-Id: I1d71908a79ff494c4fb32dab0dc881f7a70bd519
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2499,7 +2499,6 @@
double mv_ratio_accumulator = 0.0;
double zero_motion_accumulator = 1.0;
double loop_decay_rate = 1.00;
- double last_loop_decay_rate = 1.00;
double this_frame_mv_in_out = 0.0;
double mv_in_out_accumulator = 0.0;
@@ -2621,7 +2620,7 @@
// Accumulate the effect of prediction quality decay.
if (!flash_detected) {
- last_loop_decay_rate = loop_decay_rate;
+ double last_loop_decay_rate = loop_decay_rate;
loop_decay_rate = get_prediction_decay_rate(frame_info, next_frame);
// Break clause to detect very still sections after motion. For example,