diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-08-29 01:35:16 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-08-29 01:47:23 +0200 |
commit | fdb4c035551f177f550d69ed62e8d8bca1c6f32c (patch) | |
tree | 101ea9dac58084e056812013d1959244595e9ab0 | |
parent | 3b780e818a25ca1d7fcff2db9c6a0d6e92d8b19e (diff) |
avfilter/vf_tpad: rescale EOF pts for case outlink time_base differs
-rw-r--r-- | libavfilter/vf_tpad.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |