shithub: libvpx

Download patch

ref: 2dea20be26ee29de9a31122107a29170e1730dd4
parent: 22ca684d8879c3897c97c1c96b5b6506b7d93840
parent: dcc7c5aeb1c1c07bad79188e2d7858955246a318
author: Jingning Han <[email protected]>
date: Thu Nov 15 19:07:22 EST 2018

Merge "Fix arf boost factor calculation for intermediate ARFs"

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2144,8 +2144,9 @@
   for (idx = 0; idx <= mid; ++idx)
     if (EOF == input_stats(twopass, &fpf_frame)) break;
 
-  gf_group->gfu_boost[*index_counter] = VPXMAX(
-      MIN_ARF_GF_BOOST, calc_arf_boost(cpi, end - mid, mid - start) >> depth);
+  gf_group->gfu_boost[*index_counter] =
+      VPXMAX(MIN_ARF_GF_BOOST,
+             calc_arf_boost(cpi, end - mid + 1, mid - start) >> depth);
 
   reset_fpf_position(twopass, start_pos);