Rescale the timestamp for AVERROR_EOF. This can fix tickets 10261 and 10262.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -602,6 +602,7 @@ not_ready: · 601 unmodified lines | |||
| 602 | return FFERROR_NOT_READY; | 602 | return FFERROR_NOT_READY; |
| 603 | 603 | ||
| 604 | eof: | 604 | eof: |
| 605 | pts = av_rescale_q(pts, inlink->time_base, outlink->time_base); | ||
| 605 | ff_outlink_set_status(outlink, status, pts); | 606 | ff_outlink_set_status(outlink, status, pts); |
| 606 | return 0; | 607 | return 0; |
| 607 | } | 608 | } |