From a9cac8ade00298c32e38f44fea2283c8a0c16fa9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 May 2015 13:40:43 +0200 Subject: vo: remove suspicious line pts can never be 0 or negative. If there is no frame, some code below catches this case by checking hasframe. (cherry picked from commit 372b85b9d20e3bc97120e2506ef9f89224e0f84e) --- video/out/vo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo.c b/video/out/vo.c index 3e19006862..f7e5c89012 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -588,7 +588,7 @@ static bool render_frame(struct vo *vo) int64_t duration = in->frame_duration; struct mp_image *img = in->frame_queued; - if (!img && (!in->vsync_timed || in->paused || pts <= 0)) + if (!img && (!in->vsync_timed || in->paused)) goto nothing_done; if (in->vsync_timed && !in->hasframe) -- cgit v1.2.3