]> granicus.if.org Git - libvpx/commitdiff
Incorrect frame used in KF boost loop.
authorPaul Wilkins <paulwilkins@google.com>
Wed, 21 Oct 2015 17:48:15 +0000 (18:48 +0100)
committerPaul Wilkins <paulwilkins@google.com>
Wed, 21 Oct 2015 21:17:53 +0000 (22:17 +0100)
Fixes a bug in the calculation of the boost for key frames.

Change-Id: I75e9c96a9e86379239fbbbecb56ccd529783dc7c

vp9/encoder/vp9_firstpass.c

index a6b5ebb0137082db55c6fe49a2d01a92af412437..e423d8d711dfd68a2ac6084eb07ec89a1645da2d 100644 (file)
@@ -2444,7 +2444,7 @@ static void find_next_key_frame(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
     if ((i <= rc->max_gf_interval) ||
         ((i <= (rc->max_gf_interval * 4)) && (decay_accumulator > 0.5))) {
       const double frame_boost =
-        calc_frame_boost(cpi, this_frame, 0, KF_MAX_BOOST);
+        calc_frame_boost(cpi, &next_frame, 0, KF_MAX_BOOST);
 
       // How fast is prediction quality decaying.
       if (!detect_flash(twopass, 0)) {