changeset 11852:24a6c651c3f3 libavcodec

libvpx: Set the libvpx frame dropping threshold to frame_skip_threshold The default for frame_skip_threshold is 0, which thus disables the libvpx frame dropping.
author mstorsjo
date Tue, 08 Jun 2010 09:01:14 +0000
parents 3e97c4c25ec3
children 1547c744b8d4
files libvpxenc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvpxenc.c	Tue Jun 08 08:47:50 2010 +0000
+++ b/libvpxenc.c	Tue Jun 08 09:01:14 2010 +0000
@@ -240,6 +240,7 @@
     //convert [1,51] -> [0,63]
     enccfg.rc_min_quantizer = ((avctx->qmin * 5 + 1) >> 2) - 1;
     enccfg.rc_max_quantizer = ((avctx->qmax * 5 + 1) >> 2) - 1;
+    enccfg.rc_dropframe_thresh = avctx->frame_skip_threshold;
 
     //_enc_init() will balk if kf_min_dist differs from max w/VPX_KF_AUTO
     if (avctx->keyint_min == avctx->gop_size)