summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2015-10-21 18:48:15 +0100
committerPaul Wilkins <paulwilkins@google.com>2015-10-21 22:17:53 +0100
commit4e887f032d904822db83ea10b8459ae4e09525d2 (patch)
treedb5f327c456c528fb52fd77b32a8cc3b21e64239
parent56cfbeefb43011aec4ef94e1296da0fe30747ee1 (diff)
downloadlibvpx-4e887f032d904822db83ea10b8459ae4e09525d2.tar.gz
Incorrect frame used in KF boost loop.
Fixes a bug in the calculation of the boost for key frames. Change-Id: I75e9c96a9e86379239fbbbecb56ccd529783dc7c
-rw-r--r--vp9/encoder/vp9_firstpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c
index a6b5ebb01..e423d8d71 100644
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -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)) {