From 88432b817d0ca115ff97ec76065f1dabcb5f9137 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Dec 2013 23:44:08 +0100 Subject: 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). --- video/decode/dec_video.c | 1 - 1 file changed, 1 deletion(-) (limited to 'video') diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index db9c318847..6cfab92798 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -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) -- cgit v1.2.3