aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-08 09:01:14 +0000
committerMartin Storsjö <martin@martin.st>2010-06-08 09:01:14 +0000
commit00ce2cbed55d2bfb67ed7c2abb734f452a7b9267 (patch)
treebc085cb4781c83bf020a6b2ca1f995defef7c4de /libavcodec
parent07777c2d5c1a87e5c6814f4c9d9de6dee5c7ff3c (diff)
downloadffmpeg-00ce2cbed55d2bfb67ed7c2abb734f452a7b9267.tar.gz
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. Originally committed as revision 23522 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libvpxenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index c073ebf98b..2c04866d5c 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -240,6 +240,7 @@ static av_cold int vp8_init(AVCodecContext *avctx)
//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)