ref: 000efb5711d2732f7197f15cd8497ddc4140a5b9
parent: c2b5a393451b59d444884b6e7fee2de51e8ab8e2
parent: dbae98082c1129191db46d94ddb45609fc7897c4
author: Yaowu Xu <[email protected]>
date: Tue Jan 21 11:04:35 EST 2014
Merge "Enforce key frame placement"
--- 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);