From: Oleg Oshmyan Date: Wed, 30 Apr 2014 23:06:28 +0000 (+0100) Subject: Fix corner case: \move with identical start and end times X-Git-Tag: 0.12.0~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00ffbd4e319605d17ecff4941394cac64e327786;p=libass Fix corner case: \move with identical start and end times --- diff --git a/libass/ass_parse.c b/libass/ass_parse.c index fcf62c3..c572955 100644 --- a/libass/ass_parse.c +++ b/libass/ass_parse.c @@ -420,9 +420,9 @@ char *parse_tag(ASS_Renderer *render_priv, char *p, double pwr) skipopt(')'); delta_t = t2 - t1; t = render_priv->time - render_priv->state.event->Start; - if (t < t1) + if (t <= t1) k = 0.; - else if (t > t2) + else if (t >= t2) k = 1.; else k = ((double) (t - t1)) / delta_t;