]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg: remove premature rescaling of forced_keyframe times
authorGyan Doshi <ffmpeg@gyani.pro>
Thu, 2 Jan 2020 15:29:00 +0000 (20:59 +0530)
committerGyan Doshi <ffmpeg@gyani.pro>
Sun, 5 Jan 2020 05:25:36 +0000 (10:55 +0530)
The user-set forced KF times are parsed *after* this deleted
loop and rescaled right after parsing.

fftools/ffmpeg.c

index 9af2bc2fb5ecfa5bf6af34e9a439c78731536573..2c5fcc053209d7761b224d9eb663ca72e73329f3 100644 (file)
@@ -3367,10 +3367,6 @@ static int init_output_stream_encode(OutputStream *ost)
             av_log(oc, AV_LOG_WARNING, "Frame rate very high for a muxer not efficiently supporting it.\n"
                                        "Please consider specifying a lower framerate, a different muxer or -vsync 2\n");
         }
-        for (j = 0; j < ost->forced_kf_count; j++)
-            ost->forced_kf_pts[j] = av_rescale_q(ost->forced_kf_pts[j],
-                                                 AV_TIME_BASE_Q,
-                                                 enc_ctx->time_base);
 
         enc_ctx->width  = av_buffersink_get_w(ost->filter->filter);
         enc_ctx->height = av_buffersink_get_h(ost->filter->filter);