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:
parent
3b780e818a
commit
fdb4c03555
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user