mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/vf_tpad: rescale EOF pts for case outlink time_base differs
This commit is contained in:
parent
3b780e818a
commit
fdb4c03555
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue