From 1bbf325019a2ab0ead277cf1af8af6e63157e851 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Tue, 21 Jul 2009 00:04:24 +0200 Subject: Animations: allow equal start and end time Do not set the end time of the animation to the end time of the event in case end time and start time specified in a \t tag are equal. This should sort out a problem introduced by commit 1f176b. --- libass/ass_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index f86c73e..f2c137d 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1572,11 +1572,11 @@ static char *parse_tag(ass_renderer_t *render_priv, char *p, double pwr) } if (cnt == 3) { v1 = v[0]; - v2 = (v[1] <= v1) ? render_priv->state.event->Duration : v[1]; + v2 = (v[1] < v1) ? render_priv->state.event->Duration : v[1]; v3 = v[2]; } else if (cnt == 2) { v1 = v[0]; - v2 = (v[1] <= v1) ? render_priv->state.event->Duration : v[1]; + v2 = (v[1] < v1) ? render_priv->state.event->Duration : v[1]; v3 = 1.; } else if (cnt == 1) { v1 = 0; -- cgit v1.2.3