summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/gl_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 1f7920fbd3..8654242bcb 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1800,8 +1800,8 @@ static double gl_video_interpolate_frame(struct gl_video *p,
double R = t->pts - t->next_vsync;
float ts = p->opts.smoothmotion_threshold;
inter_coeff = R / vsync_interval;
- inter_coeff = inter_coeff < 0.0 + ts ? 0.0 : inter_coeff;
- inter_coeff = inter_coeff > 1.0 - ts ? 1.0 : inter_coeff;
+ inter_coeff = inter_coeff <= 0.0 + ts ? 0.0 : inter_coeff;
+ inter_coeff = inter_coeff >= 1.0 - ts ? 1.0 : inter_coeff;
MP_DBG(p, "inter frame ppts: %lld, pts: %lld, "
"vsync: %lld, mix: %f\n",
(long long)prev_pts, (long long)t->pts,