changeset 11851:3e97c4c25ec3 libavcodec

libvpx: Don't use the VPX_KF_FIXED mode This mode emits no keyframes at all, despite its name. Patch by James Zern, jzern at google dot com
author mstorsjo
date Tue, 08 Jun 2010 08:47:50 +0000
parents 954d05e65641
children 24a6c651c3f3
files libvpxenc.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvpxenc.c	Tue Jun 08 02:02:16 2010 +0000
+++ b/libvpxenc.c	Tue Jun 08 08:47:50 2010 +0000
@@ -241,10 +241,8 @@
     enccfg.rc_min_quantizer = ((avctx->qmin * 5 + 1) >> 2) - 1;
     enccfg.rc_max_quantizer = ((avctx->qmax * 5 + 1) >> 2) - 1;
 
+    //_enc_init() will balk if kf_min_dist differs from max w/VPX_KF_AUTO
     if (avctx->keyint_min == avctx->gop_size)
-        enccfg.kf_mode = VPX_KF_FIXED;
-    //_enc_init() will balk if kf_min_dist is set in this case
-    if (enccfg.kf_mode != VPX_KF_AUTO)
         enccfg.kf_min_dist = avctx->keyint_min;
     enccfg.kf_max_dist     = avctx->gop_size;