From fdb4c035551f177f550d69ed62e8d8bca1c6f32c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 29 Aug 2021 01:35:16 +0200 Subject: [PATCH] avfilter/vf_tpad: rescale EOF pts for case outlink time_base differs --- libavfilter/vf_tpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_tpad.c b/libavfilter/vf_tpad.c index badd24fd06..59b4a60d7c 100644 --- a/libavfilter/vf_tpad.c +++ b/libavfilter/vf_tpad.c @@ -125,6 +125,7 @@ static int activate(AVFilterContext *ctx) if (!s->eof && ff_inlink_acknowledge_status(inlink, &status, &pts)) { if (status == AVERROR_EOF) { + pts = av_rescale_q(pts, inlink->time_base, outlink->time_base); if (!s->pad_stop) { ff_outlink_set_status(outlink, status, pts); return 0;