[FFmpeg-cvslog] fftools/ffmpeg_enc: do not guess frame durations from output framerate
Anton Khirnov
git at videolan.org
Mon Jun 5 17:31:11 EEST 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun May 28 22:27:43 2023 +0200| [5bea8daa787c99b0d7172d41a0749377fee934ed] | committer: Anton Khirnov
fftools/ffmpeg_enc: do not guess frame durations from output framerate
There is no reason to expect input frame durations to match output
framerate.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5bea8daa787c99b0d7172d41a0749377fee934ed
---
fftools/ffmpeg_enc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
index 4a5ae3aa1b..5be6e9332a 100644
--- a/fftools/ffmpeg_enc.c
+++ b/fftools/ffmpeg_enc.c
@@ -1042,9 +1042,6 @@ static void do_video_out(OutputFile *of, OutputStream *ost, AVFrame *frame)
if (frame)
duration = lrintf(frame->duration * av_q2d(frame->time_base) / av_q2d(enc->time_base));
- if (duration <= 0 && ost->frame_rate.num)
- duration = FFMIN(duration, 1/(av_q2d(ost->frame_rate) * av_q2d(enc->time_base)));
-
frame_rate = av_buffersink_get_frame_rate(filter);
if (duration <= 0 && frame_rate.num > 0 && frame_rate.den > 0)
duration = 1/(av_q2d(frame_rate) * av_q2d(enc->time_base));
More information about the ffmpeg-cvslog
mailing list