[FFmpeg-cvslog] avfilter/vf_tpad: rescale EOF pts for case outlink time_base differs
Paul B Mahol
git at videolan.org
Sun Aug 29 02:47:53 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Aug 29 01:35:16 2021 +0200| [fdb4c035551f177f550d69ed62e8d8bca1c6f32c] | committer: Paul B Mahol
avfilter/vf_tpad: rescale EOF pts for case outlink time_base differs
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fdb4c035551f177f550d69ed62e8d8bca1c6f32c
---
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;
More information about the ffmpeg-cvslog
mailing list