[FFmpeg-cvslog] r23522 - trunk/libavcodec/libvpxenc.c

mstorsjo subversion
Tue Jun 8 11:01:15 CEST 2010


Author: mstorsjo
Date: Tue Jun  8 11:01:14 2010
New Revision: 23522

Log:
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.

Modified:
   trunk/libavcodec/libvpxenc.c

Modified: trunk/libavcodec/libvpxenc.c
==============================================================================
--- trunk/libavcodec/libvpxenc.c	Tue Jun  8 10:47:50 2010	(r23521)
+++ trunk/libavcodec/libvpxenc.c	Tue Jun  8 11:01:14 2010	(r23522)
@@ -240,6 +240,7 @@ static av_cold int vp8_init(AVCodecConte
     //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)



More information about the ffmpeg-cvslog mailing list