Commit b82e38a4 authored by mstorsjo's avatar mstorsjo

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23522 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a8d597ab
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment