Commit a8d597ab authored by mstorsjo's avatar mstorsjo

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23521 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ccd98026
...@@ -241,10 +241,8 @@ static av_cold int vp8_init(AVCodecContext *avctx) ...@@ -241,10 +241,8 @@ static av_cold int vp8_init(AVCodecContext *avctx)
enccfg.rc_min_quantizer = ((avctx->qmin * 5 + 1) >> 2) - 1; enccfg.rc_min_quantizer = ((avctx->qmin * 5 + 1) >> 2) - 1;
enccfg.rc_max_quantizer = ((avctx->qmax * 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) 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_min_dist = avctx->keyint_min;
enccfg.kf_max_dist = avctx->gop_size; enccfg.kf_max_dist = 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