shithub: libvpx

Download patch

ref: dbae98082c1129191db46d94ddb45609fc7897c4
parent: 575a083bcc74b8768924da0a823637b9b44f7393
author: Yaowu Xu <yaowu@google.com>
date: Tue Jan 21 09:07:45 EST 2014

Enforce key frame placement

Change-Id: I2f85c6b058638571d68a7209779de8ca8168934f

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2060,7 +2060,8 @@
   this_frame_coded_error = this_frame.coded_error;
 
   // keyframe and section processing !
-  if (rc->frames_to_key == 0) {
+  if (rc->frames_to_key == 0 ||
+      (cpi->common.frame_flags & FRAMEFLAGS_KEY)) {
     // Define next KF group and assign bits to it
     this_frame_copy = this_frame;
     find_next_key_frame(cpi, &this_frame_copy);