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