]> granicus.if.org Git - libvpx/commitdiff
Localize last_loop_decay_rate
authorangiebird <angiebird@google.com>
Mon, 14 Oct 2019 18:54:53 +0000 (11:54 -0700)
committerangiebird <angiebird@google.com>
Tue, 15 Oct 2019 22:13:33 +0000 (15:13 -0700)
Change-Id: I1d71908a79ff494c4fb32dab0dc881f7a70bd519

vp9/encoder/vp9_firstpass.c

index e98d1fbd70636f3c3c2bcbd6bfa4b0eb5e3e1554..92d820ac1ff59d20a8bcd0e279e9cc5d19c39cab 100644 (file)
@@ -2499,7 +2499,6 @@ static void define_gf_group(VP9_COMP *cpi, int gf_start_show_idx) {
   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 @@ static void define_gf_group(VP9_COMP *cpi, int gf_start_show_idx) {
 
     // 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,