shithub: libvpx

Download patch

ref: 48140167cdee252ed8ba00bf407e3563364d97dd
parent: eaadfb58695f1b5928be47e87bb00d7a6096a3ab
author: Andoni Morales Alastruey <ylatuya@gmail.com>
date: Mon Feb 7 13:04:02 EST 2011

Fix counter of fixed keyframe distance

When the keyframe distance is fixed the first interval has the right
distance but, the next ones have kf_distance + 1.

Change-Id: I44f1190fe7146124bd07660a5e0ef08829e3ae07

--- a/vp8/vp8_cx_iface.c
+++ b/vp8/vp8_cx_iface.c
@@ -706,7 +706,7 @@
         if (++ctx->fixed_kf_cntr > ctx->cfg.kf_min_dist)
         {
             flags |= VPX_EFLAG_FORCE_KF;
-            ctx->fixed_kf_cntr = 0;
+            ctx->fixed_kf_cntr = 1;
         }
     }
 
--