Fixed handling of regularly placed keyframes
authorAdrian Grange <agrange@google.com>
Wed, 23 Apr 2014 17:08:31 +0000 (10:08 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Wed, 23 Apr 2014 23:59:43 +0000 (16:59 -0700)
commit086ae992356b091f555479d41fe23ec34307620f
treed9a1049a2cb92161d4f540ad9b87e155169b2161
parentdddc3c6906f0d840935214ab0b26ea9a6e06cc27
Fixed handling of regularly placed keyframes

The encoder was not handling requests to place keyframes at
fixed intervals, i.e. kf_min_dist == kf_max_dist, correctly.

In this case when looking to place the next keyframe it was
accumulating stats all the way up to the end of the firstpass
file. This patch corrects this behavior.

Change-Id: I948ad9f1d7faa0c05861df588136cce3bb61d7e7
vp9/encoder/vp9_firstpass.c
vp9/vp9_cx_iface.c