shithub: libvpx

Download patch

ref: 2a26032bd2250407dbdc6447a82a7c1ff964d84b
parent: e50f4e4112a0e031dfc9df7a115fb0f8931bd4e1
parent: 640735025e578b68d5c7444a41b11b7bd35e32c4
author: Paul Wilkins <paulwilkins@google.com>
date: Mon Apr 29 09:50:37 EDT 2019

Merge "Fix in key frame detection"

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2820,7 +2820,7 @@
   // See above for an explanation of the test criteria.
   // If so, then examine how well it predicts subsequent frames.
   if (!detect_flash(twopass, -1) && !detect_flash(twopass, 0) &&
-      (this_frame->pcnt_second_ref < SECOND_REF_USEAGE_THRESH) &&
+      (next_frame->pcnt_second_ref < SECOND_REF_USEAGE_THRESH) &&
       ((this_frame->pcnt_inter < VERY_LOW_INTER_THRESH) ||
        (slide_transition(this_frame, last_frame, next_frame)) ||
        (intra_step_transition(this_frame, last_frame, next_frame)) ||