aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_concat.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-15 09:32:16 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-24 16:56:06 +0200
commitcd3049277343abd336f941e07549727d6e1b3ed8 (patch)
treee3084e2ed948478cc05a87b5ff61f30067e95a11 /libavfilter/avf_concat.c
parent385430592a891949d8c7be4fda3aa4019cd174ab (diff)
downloadffmpeg-cd3049277343abd336f941e07549727d6e1b3ed8.tar.gz
lavfi/avf_concat: rescale frame durations
Diffstat (limited to 'libavfilter/avf_concat.c')
-rw-r--r--libavfilter/avf_concat.c1
1 files changed, 1 insertions, 0 deletions
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 */