mirror of
https://github.com/mpv-player/mpv
synced 2025-03-03 04:37:54 +00:00
video: warn against non-monotonic PTS instead of decreasing PTS
And by non-monotonic, we mean "strictly non-monotonic".
This commit is contained in:
parent
3bed78fdfd
commit
d9b5dedfe9
@ -358,8 +358,8 @@ struct mp_image *video_decode(struct dec_video *d_video,
|
||||
pts += frame_time;
|
||||
}
|
||||
|
||||
if (d_video->decoded_pts != MP_NOPTS_VALUE && pts < d_video->decoded_pts) {
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_WARN, "Decreasing video pts: %f < %f\n",
|
||||
if (d_video->decoded_pts != MP_NOPTS_VALUE && pts <= d_video->decoded_pts) {
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_WARN, "Non-monotonic video pts: %f <= %f\n",
|
||||
pts, d_video->decoded_pts);
|
||||
pts = d_video->decoded_pts;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user