Message ID | 20210725181118.24110-1-onemda@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avfilter/avf_concat: fix EOF timestamp | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
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);
Signed-off-by: Paul B Mahol <onemda@gmail.com> --- libavfilter/avf_concat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)