From 5dbd22e1656df60f303870621f8b09d0d2c09f95 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 8 Jun 2015 12:27:40 +0200 Subject: vo: clarify condition This is (at least currently) redundant, but makes the code more explicit. (This was discussed on IRC.) --- 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 3a7f755f3a..759f4a9fba 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -632,7 +632,7 @@ static bool render_frame(struct vo *vo) in->dropped_frame = duration >= 0 && end_time < next_vsync; // Clip has similar (within ~5%) or lower fps than the display. - if (duration > 0.95 * in->vsync_interval) { + if (duration >= 0 && duration > 0.95 * in->vsync_interval) { // If the clip and display have similar/identical fps, it's possible that // due to the very tight timing, we'll drop frames frequently even if on // average we can keep up - especially if we have timing jitter (inaccurate -- cgit v1.2.3