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:
wm4 2013-12-12 23:44:08 +01:00
parent e66e16e691
commit 88432b817d
1 changed files with 0 additions and 1 deletions

View File

@ -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)