The user-set forced KF times are parsed *after* this deleted loop and rescaled right after parsing.
Unified · Split
| @@ -3367,10 +3367,6 @@ static int init_output_stream_encode(OutputStream *ost) · 3366 unmodified lines | |||
| 3367 | av_log(oc, AV_LOG_WARNING, "Frame rate very high for a muxer not efficiently supporting it.\n" | 3367 | av_log(oc, AV_LOG_WARNING, "Frame rate very high for a muxer not efficiently supporting it.\n" |
| 3368 | "Please consider specifying a lower framerate, a different muxer or -vsync 2\n"); | 3368 | "Please consider specifying a lower framerate, a different muxer or -vsync 2\n"); |
| 3369 | } | 3369 | } |
| 3370 | for (j = 0; j < ost->forced_kf_count; j++) | ||
| 3371 | ost->forced_kf_pts[j] = av_rescale_q(ost->forced_kf_pts[j], | ||
| 3372 | AV_TIME_BASE_Q, | ||
| 3373 | enc_ctx->time_base); | ||
| 3374 | 3370 | ||
| 3375 | enc_ctx->width = av_buffersink_get_w(ost->filter->filter); | 3371 | enc_ctx->width = av_buffersink_get_w(ost->filter->filter); |
| 3376 | enc_ctx->height = av_buffersink_get_h(ost->filter->filter); | 3372 | enc_ctx->height = av_buffersink_get_h(ost->filter->filter); |