mirror of https://github.com/mpv-player/mpv
dec_video: fix handling of timestamp resets
This code tried to pass a still monotonic (even if not strictly monotonic) PTS to the player, but as a result it remained stuck on the PTS before a reset (since the PTS was lower).
This commit is contained in:
parent
e66e16e691
commit
88432b817d
|
@ -361,7 +361,6 @@ struct mp_image *video_decode(struct dec_video *d_video,
|
|||
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;
|
||||
}
|
||||
|
||||
if (d_video->has_broken_packet_pts < 0)
|
||||
|
|
Loading…
Reference in New Issue