Fixes a bug in the calculation of the boost for key frames.
Unified · Split
| @@ -2444,7 +2444,7 @@ static void find_next_key_frame(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) { · 2443 unmodified lines | |||
| 2444 | if ((i <= rc->max_gf_interval) || | 2444 | if ((i <= rc->max_gf_interval) || |
| 2445 | ((i <= (rc->max_gf_interval * 4)) && (decay_accumulator > 0.5))) { | 2445 | ((i <= (rc->max_gf_interval * 4)) && (decay_accumulator > 0.5))) { |
| 2446 | const double frame_boost = | 2446 | const double frame_boost = |
| 2447 | calc_frame_boost(cpi, this_frame, 0, KF_MAX_BOOST); | 2447 | calc_frame_boost(cpi, &next_frame, 0, KF_MAX_BOOST); |
| 2448 | 2448 | ||
| 2449 | // How fast is prediction quality decaying. | 2449 | // How fast is prediction quality decaying. |
| 2450 | if (!detect_flash(twopass, 0)) { | 2450 | if (!detect_flash(twopass, 0)) { |