summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-08 12:27:40 +0200
committerwm4 <wm4@nowhere>2015-06-08 12:27:40 +0200
commit5dbd22e1656df60f303870621f8b09d0d2c09f95 (patch)
tree4a9cac62299c1e8fb8785800ae8ac899308e862b
parentb694f480fef25e9f795dff1ad614d6a163026ac6 (diff)
downloadmpv-5dbd22e1656df60f303870621f8b09d0d2c09f95.tar.bz2
mpv-5dbd22e1656df60f303870621f8b09d0d2c09f95.tar.xz
vo: clarify condition
This is (at least currently) redundant, but makes the code more explicit. (This was discussed on IRC.)
-rw-r--r--video/out/vo.c2
1 files changed, 1 insertions, 1 deletions
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