[FFmpeg-cvslog] lavfi/avf_concat: rescale frame durations
Anton Khirnov
git at videolan.org
Mon Apr 24 18:02:49 EEST 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Apr 15 09:32:16 2023 +0200| [cd3049277343abd336f941e07549727d6e1b3ed8] | committer: Anton Khirnov
lavfi/avf_concat: rescale frame durations
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd3049277343abd336f941e07549727d6e1b3ed8
---
libavfilter/avf_concat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index c85c17b51f..af758c5292 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -179,6 +179,7 @@ static int push_frame(AVFilterContext *ctx, unsigned in_no, AVFrame *buf)
struct concat_in *in = &cat->in[in_no];
buf->pts = av_rescale_q(buf->pts, inlink->time_base, outlink->time_base);
+ buf->duration = av_rescale_q(buf->duration, inlink->time_base, outlink->time_base);
in->pts = buf->pts;
in->nb_frames++;
/* add duration to input PTS */
More information about the ffmpeg-cvslog
mailing list