1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_tpad: rescale EOF pts for case outlink time_base differs

This commit is contained in:
Paul B Mahol 2021-08-29 01:35:16 +02:00
parent 3b780e818a
commit fdb4c03555

View File

@ -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;