When the keyframe distance is fixed the first interval has the right distance but, the next ones have kf_distance + 1.
Showing the changes to vp8 (1 of 1 file). Show all
Unified · Split
| @@ -706,7 +706,7 @@ static vpx_codec_err_t vp8e_encode(vpx_codec_alg_priv_t *ctx, · 705 unmodified lines | |||
| 706 | if (++ctx->fixed_kf_cntr > ctx->cfg.kf_min_dist) | 706 | if (++ctx->fixed_kf_cntr > ctx->cfg.kf_min_dist) |
| 707 | { | 707 | { |
| 708 | flags |= VPX_EFLAG_FORCE_KF; | 708 | flags |= VPX_EFLAG_FORCE_KF; |
| 709 | ctx->fixed_kf_cntr = 0; | 709 | ctx->fixed_kf_cntr = 1; |
| 710 | } | 710 | } |
| 711 | } | 711 | } |
| 712 | 712 | ||