mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
video: use less technical language for PTS warning
"Non-monotonic" isn't even 100% correct; it's missing "strictly" (for briefness I guess), and also the message is printed if the PTS jumps forward. So just print something that is likely a bit easier to understand.
This commit is contained in:
@@ -588,7 +588,7 @@ static int video_output_image(struct MPContext *mpctx, double endpts)
|
||||
frame_time = pts - mpctx->video_pts;
|
||||
if (frame_time <= 0 || frame_time >= 60) {
|
||||
// Assume a PTS difference >= 60 seconds is a discontinuity.
|
||||
MP_WARN(mpctx, "Non-monotonic video pts: %f -> %f\n",
|
||||
MP_WARN(mpctx, "Invalid video timestamp: %f -> %f\n",
|
||||
mpctx->video_pts, pts);
|
||||
frame_time = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user