[FFmpeg-devel] [PATCH] avfilter/avf_concat: fix EOF timestamp
Paul B Mahol
onemda at gmail.com
Sun Jul 25 21:11:18 EEST 2021
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavfilter/avf_concat.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index cb46f52a04..8bb5a5d618 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -402,7 +402,10 @@ static int activate(AVFilterContext *ctx)
if (ret > 0) {
close_input(ctx, cat->cur_idx + i);
if (cat->cur_idx + ctx->nb_outputs >= ctx->nb_inputs) {
- ff_outlink_set_status(ctx->outputs[i], status, pts);
+ ff_outlink_set_status(ctx->outputs[i], status,
+ cat->delta_ts + av_rescale_q(pts,
+ ctx->inputs[cat->cur_idx + i]->time_base,
+ ctx->outputs[i]->time_base));
}
if (!cat->nb_in_active) {
ret = flush_segment(ctx);
--
2.17.1
More information about the ffmpeg-devel
mailing list