History

Incorrect frame used in KF boost loop.

Fixes a bug in the calculation of the boost for key frames.

Paul Wilkins committed 11 years ago

Commit 4e887f01 parent 56cfbee1 file · +1 −1Browse files

Unified · Split

vp9/encoder/vp9_firstpass.c+1−1
@@ -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)) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t