summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-12 23:44:08 +0100
committerwm4 <wm4@nowhere>2013-12-12 23:46:27 +0100
commit88432b817d0ca115ff97ec76065f1dabcb5f9137 (patch)
treecc6ed4edaac7610e18ec9c393d6d5e341c7ada91 /video/decode
parente66e16e691ac7bd5a70faa88259bfd9fe9ada651 (diff)
downloadmpv-88432b817d0ca115ff97ec76065f1dabcb5f9137.tar.bz2
mpv-88432b817d0ca115ff97ec76065f1dabcb5f9137.tar.xz
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).
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/dec_video.c1
1 files changed, 0 insertions, 1 deletions
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)