video: warn against non-monotonic PTS instead of decreasing PTS

And by non-monotonic, we mean "strictly non-monotonic".
This commit is contained in:
wm4 2013-11-28 13:39:36 +01:00
parent 3bed78fdfd
commit d9b5dedfe9
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}