From 5f6de4cc9f572e41c96a308fab86a3a3e769acbe Mon Sep 17 00:00:00 2001 From: Rodger Combs Date: Mon, 14 Oct 2019 19:05:39 -0500 Subject: parse_tags: fix case where t==t1==t2 This previously gave the pre-transition value; VSFilter's behavior is to give the post-transition value. --- libass/ass_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass') diff --git a/libass/ass_parse.c b/libass/ass_parse.c index a3a1bdb..870f89a 100644 --- a/libass/ass_parse.c +++ b/libass/ass_parse.c @@ -629,7 +629,7 @@ char *parse_tags(ASS_Renderer *render_priv, char *p, char *end, double pwr, t2 = render_priv->state.event->Duration; delta_t = t2 - t1; t = render_priv->time - render_priv->state.event->Start; // FIXME: move to render_context - if (t <= t1) + if (t < t1) k = 0.; else if (t >= t2) k = 1.; -- cgit v1.2.3