diff options
author | wm4 <wm4@nowhere> | 2013-11-28 13:39:36 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-28 15:20:33 +0100 |
commit | d9b5dedfe95dc9b24e6c59c33044396187918bc2 (patch) | |
tree | 7f517761d4cbdcd4a99dc4917e7d24b9ee7184d7 /video | |
parent | 3bed78fdfd425c4d5652c5811eb37d47a65d33cc (diff) | |
download | mpv-d9b5dedfe95dc9b24e6c59c33044396187918bc2.tar.bz2 mpv-d9b5dedfe95dc9b24e6c59c33044396187918bc2.tar.xz |
video: warn against non-monotonic PTS instead of decreasing PTS
And by non-monotonic, we mean "strictly non-monotonic".
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/dec_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index ec4cd5b775..1ec0bab241 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -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; } |