diff options
author | wm4 <wm4@nowhere> | 2013-11-27 20:56:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-27 21:14:39 +0100 |
commit | 5d97ac229a9a536a2fc5c746fd8a64c805001b6a (patch) | |
tree | 16345e501bdab0cf3c8f8bf5f573ffaef78cc939 /mpvcore/player | |
parent | f5219720f8917145cb2e0d9258b3233de1a6fb19 (diff) | |
download | mpv-5d97ac229a9a536a2fc5c746fd8a64c805001b6a.tar.bz2 mpv-5d97ac229a9a536a2fc5c746fd8a64c805001b6a.tar.xz |
video: if PTS is missing, make something up using the framerate
Also get rid of the PTS check _after_ filters. This means if there's a
video filter which unsets PTS, no warning will be printed. But we assume
that all filters are well-behaved enough by now.
Diffstat (limited to 'mpvcore/player')
-rw-r--r-- | mpvcore/player/video.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mpvcore/player/video.c b/mpvcore/player/video.c index a9dffaf6e9..45cfd6ebf4 100644 --- a/mpvcore/player/video.c +++ b/mpvcore/player/video.c @@ -313,13 +313,6 @@ double update_video(struct MPContext *mpctx, double endpts) return 0; double pts = video_out->next_pts; - if (pts == MP_NOPTS_VALUE) { - MP_ERR(mpctx, "Video pts after filters MISSING\n"); - // Try to use decoder pts from before filters - pts = d_video->pts; - if (pts == MP_NOPTS_VALUE) - pts = d_video->last_pts; - } if (endpts == MP_NOPTS_VALUE || pts < endpts) add_frame_pts(mpctx, pts); if (mpctx->hrseek_active && pts < mpctx->hrseek_pts - .005) { |