diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2019-10-14 19:05:39 -0500 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2019-11-07 19:43:14 +0200 |
commit | 5f6de4cc9f572e41c96a308fab86a3a3e769acbe (patch) | |
tree | ac2bc1c2040f0d4d32c612bdba351bf7a1521e0f | |
parent | 517957eb70b757bdc4a51e62feac29095cd667e5 (diff) | |
download | libass-5f6de4cc9f572e41c96a308fab86a3a3e769acbe.tar.bz2 libass-5f6de4cc9f572e41c96a308fab86a3a3e769acbe.tar.xz |
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.
-rw-r--r-- | libass/ass_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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.; |