]> granicus.if.org Git - libvpx/commitdiff
Merge "Fix rate allocation bug."
authorPaul Wilkins <paulwilkins@google.com>
Thu, 9 Jan 2014 11:00:15 +0000 (03:00 -0800)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 9 Jan 2014 11:00:15 +0000 (03:00 -0800)
1  2 
vp9/encoder/vp9_firstpass.c

index 3e0b617f91eb92adbce516ec4e14ac1c25a2af62,910aae94ed95a6bd5d4062713aff364a25aad89d..5317661c08ac2120ef1c09b5279d496c03faf898
@@@ -1663,10 -1664,10 +1662,10 @@@ static void define_gf_group(VP9_COMP *c
  
    // Don't allow a gf too near the next kf
    if ((cpi->rc.frames_to_key - i) < MIN_GF_INTERVAL) {
-     while (i < (cpi->rc.frames_to_key - 1)) {
+     while (i < cpi->rc.frames_to_key) {
        i++;
  
 -      if (EOF == input_stats(cpi, this_frame))
 +      if (EOF == input_stats(&cpi->twopass, this_frame))
          break;
  
        if (i < cpi->rc.frames_to_key) {